react-base-table icon indicating copy to clipboard operation
react-base-table copied to clipboard

Dynamically color the rows based on some information in the row prop

Open murtdagi opened this issue 3 years ago • 1 comments

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 ?

murtdagi avatar Mar 16 '22 07:03 murtdagi

rowClassName={({ rowData }) => rowData.error ? styles.red : styles.black}

jamesonhill avatar Mar 16 '22 20:03 jamesonhill