1
Good afternoon, everyone!
I have tried several ways to make a color change of an ngx-datatable Row, but only way I could was to change the color Hover of my Row. What I need is to change the color when selecting a line, like this example: https://stackblitz.com/edit/angular-gk6hut?file=src%2Fstyles.scss, but I couldn’t in any way.
How current:
:host
::ng-deep
.ngx-datatable.bootstrap:not(.cell-selection)
.datatable-body-row:hover,
:host
::ng-deep
.ngx-datatable.material:not(.cell-selection)
.datatable-body-row:hover
.datatable-row-group {
background: blue;
}
Would not be a
,
missing after the second.datatable-body-row:hover
http://prntscr.com/o0lbl4– hugocsl
Hugo, the way the code is working, however, is only changing the line when I keep the mouse on top of the line, which would be the datatable-body-Row:Hover, When I take the mouse, the background color comes back. What I need is to change the color when clicking, with a Selected active that ngx-datatable itself has, but unfortunately I’m not getting.
– Samuel WNI