StaticgetRetrieve an existing widget by element and ID.
StaticregisterIf no actions are supplied, nothing is done.
Optionalconfig: TriggerConfigLisnUsageError If the config is invalid.
ReadonlydestroyUndoes all modifications to the element and returns it to its original state.
You will need to recreate it if you want to enable its functionality again.
ReadonlydisableDisables the functionality of the widget. What this means is specific to each widget.
ReadonlyenableRe-enables the functionality of the widget. What this means is specific to each widget.
ReadonlygetReturns the trigger's actions.
ReadonlygetReturns the trigger config.
ReadonlygetReturns the element passed to the widget constructor.
ReadonlyisReturns true if the widget is destroyed.
ReadonlyisReturns true if the widget is currently disabled.
ReadonlyonThe given handler will be called when the widget is destroyed.
ReadonlyonThe given handler will be called when the widget is disabled.
ReadonlyonThe given handler will be called when the widget is enabled.
Readonlyreverse"Undo"es all the Actions linked to the trigger.
Readonlyrun"Do"es all the Actions linked to the trigger.
Readonlytoggle"Toggle"s all the Actions linked to the trigger.
ReadonlytoggleRe-enables the widget if disabled, otherwise disables it.
Trigger is the base trigger class that you can extend when building custom triggers and it also registers a trigger that needs to be run manually (by e.g. the Run action).
To use with auto-widgets (HTML API), see registerTrigger for the specification.
Example
Show the element 1000ms after the first time the trigger is run.