Conditionally color rows except one special column? #2460
Unanswered
dushan-ranasinghage
asked this question in
General
Replies: 1 comment
-
Feel free to use discord to ask questions as well: https://discord.com/invite/WrRKjPJ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to apply styling to a row except one or two column based on some condition? I tried out the below code snippet. But I couldn't find a way to access column details in
getTrProps
.getTrProps={(state, rowInfo, column) => { console.log(state, rowInfo, column) return { style: { background: rowInfo && rowInfo.row.status == 0 ? '#FFFF00' : '#fff' } } }}
This is the code which I am using to color rows according to the data I am getting from the back-end.
Beta Was this translation helpful? Give feedback.
All reactions