When I try to add color class to DataTable element in
$('#dtDataTable').DataTable( {
createRow: function(row, data, dataIndex) {
$(row).addClass('bg-lime');
},
});
background color does not work. But when i add bootstrap color class (ie: bg-success) it does work well and (in given example) all rows are colored. I think it's because of missing !important attribute on color.
It does not matter where I put CSS file declaration (it's after bootstrap's CSS).