Runs or reverses a list of triggers defined on the given element.
To use with auto-widgets (HTML API) as part of a trigger specification:
<button data-lisn-on-click=" @run=triggerA,triggerB @add-class=clsA +id=triggerA " data-lisn-on-run="@add-class=clsB +id=triggerB"></button> Copy
<button data-lisn-on-click=" @run=triggerA,triggerB @add-class=clsA +id=triggerA " data-lisn-on-run="@add-class=clsB +id=triggerB"></button>
Static
Readonly
Runs the triggers with IDs given to the constructor.
Toggles the triggers with IDs given to the constructor.
Reverses the triggers with IDs given to the constructor.
Runs or reverses a list of triggers defined on the given element.
To use with auto-widgets (HTML API) as part of a trigger specification:
Example