-1

How to style a row in ngx-datatable component? Here is an example in component's documentation: https://swimlane.github.io/ngx-datatable/#css

When I run same demo only one row has background color set. Here is my demo

1 Answers1

0

In order to style properly the child component from the parent component, you can use one of the methods specified in this link. Preferably use the answer 3 in the link which will prevent the use of deprecated selector like :deep:. You can fix the color not appearing in even rows by

/deep/ .age-is-ten {  background: #ffc91f !important;}
deepak thomas
  • 1,118
  • 9
  • 23
  • Tried and the result is same. Only one row changed background. –  Sep 24 '20 at 16:56
  • .ngx-datatable.bootstrap .datatsable-body .datatable-body-row.datatable-row-even -> this css seems to be over writing you background color – deepak thomas Sep 24 '20 at 17:01