Custom classes
You can pass your classes for the table, row, cell, etc.. via classes
prop. And interesting thing is you can pass a validator function to apply custom classes conditionally.
Example
Currently you can add custom classes to <table>, <tr> and <td>
elements using table, row, and cell properties respectively.
You can either pass the custom classes directly or pass a function with your condition check to decide whether to apply to class or not.
For example, in the above example, look at the property cell
. There we are applying classes "my-cell my-cell2" directly to <td>
element and "text-danger" class only to the "salary" column & also the salary value should be above 2500.
Last updated