ngx-datatable css styling for mouse hover
.ngx-datatable.bootstrap:not(.cell-selection) .datatable-body-row:hover,
.ngx-datatable.material:not(.cell-selection) .datatable-body-row:hover .datatable-row-group
{
background: red;
}
This works.
: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: red;
}
I had to add
:host
::ng-deep
and then it stared working.
You can change other default styles because there is a linear translation:
:host
::ng-deep
.ngx-datatable.material:not(.cell-selection)
.datatable-body-row:hover {
background-color: #007bff2e;
}