Styling a row while certain condition is met #135
-
Hello! I have the need to style a row based on certain condition. Do you think is possible to implement something like this? rowStyles: ({ completed }) => ({ backgroundColor: completed && '#636363' }) |
Beta Was this translation helpful? Give feedback.
Answered by
icflorescu
Dec 16, 2022
Replies: 2 comments 1 reply
-
Created issue #152. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is possible starting with |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
icflorescu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is possible starting with
v1.7.28
🎉TL;DR: Use
rowClassName
orrowStyle
; they both accept a function like this:(record, recordIndex) => ...