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:

  • Action name: "run".
  • Arguments (required): one or more unique IDs of triggers defined on the given element
  • Options: none
<button data-lisn-on-click="
@run: triggerA,triggerB
@add-class: clsA +id=triggerA
"
data-lisn-on-run="@add-class: clsB +id=triggerB"
></button>

Implements

Methods

Constructors

Properties

Methods

Constructors

Properties

do: () => Promise<void>

Runs the triggers with IDs given to the constructor.

toggle: () => Promise<void>

Toggles the triggers with IDs given to the constructor.

undo: () => Promise<void>

Reverses the triggers with IDs given to the constructor.