Current example of row highlighting
Current example of row highlighting
nettlesd
Posts: 22Questions: 5Answers: 0
Anyone have a current example of highlighting rows based on a column value? Something like "Yes"No" in a column with "Yes" having a row color of "green" and "No" having a row color of "red".
I found some older discussions but they are for legacy datatables.
Maybe something along the lines of this:
table.rows().indexes().each( function (idx) {
var d = table.row( idx ).data();
d.counter++;
table.row( idx ).data( d );
} );
// Draw once all updates are done
table.draw();
This discussion has been closed.