I'm using bootstrap table. If I set the color in the style attribute, it gets removed by bootstrap-table, so what I've done is I added an attribue like "data-rowcolor" and then used a javascript to apply the color:
$('td[data-rowcolor]').attr("style", "background-color:yellow;");
The problem with this approach is that when I use the search box to filter things, the colors disappear. Any ideas how to be able to set the color without losing it?
Maybe I should set the color in the onSearch callback but I'm not sure how it works. I've seen the doc.