Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35271

Current example of row highlighting

$
0
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();


Viewing all articles
Browse latest Browse all 35271

Trending Articles