Static
getRetrieve an existing widget by element and ID.
Static
registerIf no actions are supplied, nothing is done.
LisnUsageError If the config is invalid.
Readonly
destroyUndoes 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.
Readonly
disableDisables the functionality of the widget. What this means is specific to each widget.
Readonly
enableRe-enables the functionality of the widget. What this means is specific to each widget.
Readonly
getReturns the trigger's actions.
Readonly
getReturns the trigger config.
Readonly
getReturns the element passed to the widget constructor.
Readonly
isReturns true if the widget is destroyed.
Readonly
isReturns true if the widget is currently disabled.
Readonly
onThe given handler will be called when the widget is destroyed.
Readonly
onThe given handler will be called when the widget is disabled.
Readonly
onThe given handler will be called when the widget is enabled.
Readonly
reverse"Undo"es all the Actions linked to the trigger.
Readonly
run"Do"es all the Actions linked to the trigger.
Readonly
toggle"Toggle"s all the Actions linked to the trigger.
Readonly
toggleRe-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):