How can I change the color of a row with a column condition? #340
Answered
by
KevinVandy
RonalSilve
asked this question in
Q&A
-
I want to avoid creating a status column by giving a color for each value the column has. |
Beta Was this translation helpful? Give feedback.
Answered by
KevinVandy
Jan 27, 2023
Replies: 1 comment 4 replies
-
See both the Column Instance API Docs and the Row Instance API docs. You can pass props to each row conditionally with the <MaterialReactTable
muiTableBodyRowProps={({ column, row }) => ({
//props, conditional on column and row apis
})
/> |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
RonalSilve
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See both the Column Instance API Docs and the Row Instance API docs. You can pass props to each row conditionally with the
muiTableBodyRowProps
prop like so