KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

When status column has zero value, I want to highlight in different color #3426

Open sabeeha opened this topic on on Mar 20 - 1 comments

sabeeha commented on Mar 20

Sebastian Morales commented 5 days ago

You can try core Table widget's cssClass property function:

https://www.koolreport.com/docs/koolphp/table/#table-settings-cssclass-options

//Use function
Table::create(array(
    "cssClass"=>array(
        ...
        "td"=>function($row,$columnName){
            return "cell-css-class"; // return a css class by $row[$columnName] value, then assign a font color rule for that css class
        }
    )
))
 

If you have any question let us know.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

None