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