How can I change the cell color conditionally using the PrimeReact TreeTable? #1922
Unanswered
Rafael-Dutra-create
asked this question in
PrimeReact
Replies: 1 comment
-
this is wholly dependent on whether you can access the id of the node I cannot verify at the moment but if you have access to the node of the row, you can use the body prop for columns. If you have the key then in the body method, you can find it in the nodes array that you have, do the conditional check and then return something like |
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
-
I have a node that is structured in this way:
I want to change the cell color of the ‘adeq’ column to red if it is less than ‘percentual_min’ and blue if it is greater:
I don’t see any way to put this condition in the style or classname using TreeTable.
Beta Was this translation helpful? Give feedback.
All reactions