I'm using <p-dataTable [rowStyleClass]="rowStyler" etc>
, and the method in my component looks like this:
newRowFormat(rowData, rowIndex) {
return('newRow');
}
And in the component CSS, that class newRow looks like this:
:host /deep/ .newRow {
background-color: gold;
}
The result is that every other row of the table is being colored gold, when every row should have that class applied to it. Long story, but I want the class applied to every single row, not every other row.
Ideas?