Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 715 Bytes

how-custom-color-row.md

File metadata and controls

19 lines (13 loc) · 715 Bytes

How To Change The Color Of Row With Specific Condition

Some cases you need to change the color of row. For example is change the rows color that has status 'active' to be green color.

Open the module controller, find $this->table_row_color in cbInit() method.

$this->table_row_color = array();
$this->table_row_color[] = ['condition'=>"[status] == 'active'","color"=>"success"];

condition attribute : you can use the field alias, for example : [id], [status], etc

color attribute : you can use : success, warning, info, danger, primary

What's Next

Table Of Contents