Removes or adds a list of CSS classes to/from the given element.
IMPORTANT: When constructed, it adds all given classes from the element as a form of initialization.
To use with auto-widgets (HTML API) as part of a trigger specification:
<div data-lisn-on-view="@remove-class: clsA, clsB"></div> Copy
<div data-lisn-on-view="@remove-class: clsA, clsB"></div>
Static
Readonly
Removes the classes given to the constructor.
Toggles each class given to the constructor.
Adds the classes given to the constructor.
Removes or adds a list of CSS classes to/from the given element.
IMPORTANT: When constructed, it adds all given classes from the element as a form of initialization.
To use with auto-widgets (HTML API) as part of a trigger specification:
Example