How can I apply -> text-decoration: line-through on a text when the toggle is selected?

Hello! I want that every time the user clicks on the toggle, the text gets a line-through, but I didn't find a way to do so... Could someone help me, please?
1 answers

Try to use the properties->dynamic class option.


When the user switches apply the styling based on the switch status.


You might need to add custom classes to make it work.