Dynamically color the rows based on some information in the row prop
murtdagi opened this issue · 1 comments
murtdagi commented
Is there a simple way of dynamically colouring the table rows based on some prop values? I have a scenario where the user has configured what color they want the rows to be based on some values in the rows.
any thoughts @nihgwu ?
jamesonhill commented
rowClassName={({ rowData }) => rowData.error ? styles.red : styles.black}