Class Toggle
Dynamic Class Toggling — any class, any element inside an instance.
Last updated
Was this helpful?
Dynamic Class Toggling — any class, any element inside an instance.
Last updated
Was this helpful?
Attribute: sf-react = class(expression, className)
(see )
Where: any HTML element within the form that you want to dynamically add to or remove CSS classes from based on conditions.
Description: dynamic addition or removal of any CSS classes on an element based on the evaluation of a specified expression.
You are not restricted to framework-specific classes. Use any class you want.
This is particularly useful for changing the appearance of form elements in response to user interactions or form states.
$s
variable)