Highlight rows

You can highlight rows with different colors by matching a specific set of conditions

To highlight a row you need to use the $highlight array

$highlight = array();

Then on each value you need to add the following information separated with commas:

  • Column Name
  • Conditional Operator
  • Value
  • Color (can be #HEX or RGBA color)
  • Title of the selection
array_push($highlight,'PURCHASE_DATE,<,2020-01-01,RED,Before January 2020');
array_push($highlight,'PURCHASE_DATE,>=,2020-01-01,GREEN,After January 2020');

 

Get a Quote

Get a Quote