i would like to change row color based on my condition. I am using Bootgrid js (http://www.jquery-bootgrid.com/Documentation)
Here is example:
- my condition can be 1 or 0
- if it´s 1 than I need red background color, if 0 - default
This works on "normal" tables
<?php
if(condition = 1){
<tr class="red">
} else {
<tr>
}
?>
I have tried with template formater but it apply on whole table not on my condition
Does anybody know is this possible and how to do this? Thx