conditional column classes
conditional column classes
willemm
Posts: 1Questions: 1Answers: 0
Hi, how to add class name to columns <td> element based on conditional row value's. i.e for multiple row item status' i want to make the Status column show red/yellow/green background color. It's should be really easy but the documentation this side is a little sparse & please don't tell me to use "columnDefs"
This discussion has been closed.
Answers
You can use
columns.createdCell
orcreateRow
. If the data in the table can change then you will want to userowCallback
instead.Kevin