Published
- 1 min read
datatable row color
The solution for this is noted below
datatable row color
Solution
$('#tid_css').DataTable({
// ...
createdRow: function (row, data, dataIndex) {
if (data['column_index'] == 'column_value') {
$(row).css('background-color', 'Orange')
$(row).addClass('warning')
}
}
// ...
})
Try other methods by searching on the site. That is if this doesn’t work