How to color text per cell based on the text's value? #1426
Unanswered
daldr-ntml
asked this question in
Q&A
Replies: 1 comment
-
Hi, Look at the docs with the formatter, this enables you to return html for a cell :) |
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 would like to change the text color of a table cell depending on its value.
user.result
is a string, taking the values 'Pass' or 'Fail'. If the value is 'Fail' I would like the text to be red, if 'Pass' black. How can I achieve that?Actually, it would be better for the database value to be a boolean, how should the
if
syntax be changed for that?Beta Was this translation helpful? Give feedback.
All reactions