Conditional Cell Styling
The `cellClasses` option allows you to conditionally add class(es) to the `td` element based on predefined conditions.
For example, say you want to add a `low-balance` class to cells in a `balance` column that has a value of less than 100:
1
cellClasses:{
2
balance: [
3
{
4
class:'low-balance',
5
condition: row => row.balance < 100
6
}
7
]
8
}
Copied!
Last modified 1yr ago
Copy link