Enables or disables a list of triggers defined on the given element.
IMPORTANT: When constructed, it disables all given triggers as a form of initialization.
To use with auto-widgets (HTML API) as part of a trigger specification:
<button id="btn">Enable/disable</button><button data-lisn-on-click=" @enable=triggerA,triggerB +target=#btn @add-class=clsA +id=triggerA " data-lisn-on-click="@add-class=clsB +id=triggerB"></button> Copy
<button id="btn">Enable/disable</button><button data-lisn-on-click=" @enable=triggerA,triggerB +target=#btn @add-class=clsA +id=triggerA " data-lisn-on-click="@add-class=clsB +id=triggerB"></button>
Static
Readonly
Enables the triggers with IDs given to the constructor.
Toggles the enabled state on each trigger given to the constructor.
Disables the triggers with IDs given to the constructor.
Enables or disables a list of triggers defined on the given element.
IMPORTANT: When constructed, it disables all given triggers as a form of initialization.
To use with auto-widgets (HTML API) as part of a trigger specification:
Example