StaticgetRetrieve an existing widget by element and ID.
StaticregisterIf no actions are supplied, nothing is done.
LisnUsageError 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.
LoadTrigger allows you to run actions one when the page is loaded.
To use with auto-widgets (HTML API), see registerTrigger for the specification.
Example
Scroll to the given element when the page is loaded:
Example
Scroll to 100px above the given element 500ms after the page is loaded:
Example
Scroll to 100px above the given element 500ms after the page is loaded, and play animations defined on it 500ms later (1000ms after it's loaded):