Change Color of Text on click of an Event

0
Hi, I am using a Editable list view in which I have two attributes Name (text) and ItemValue(checkbox) . On click of the checkbox the color of text should be changed to yellow. Can anyone help on this. Thanks 
asked
2 answers
0

If you go to the appearance tab on your Text widget, you can setup a dynamic class using expression.

You can declare a CSS class where you add yellow text, and use the dynamic class expression to add the class when the checkbox is set to true

answered
0

That’s what dynamic classes are for. Depending on your theme you could use classes like ‘text-primary’ or ‘text-warning’, or create your own CSS rule like ‘text-yellow’.

answered