Description
The forward pattern forwards click events to another element(s).
Documentation
This pattern can be used to redirect a click on an element to one or more other elements.
If the trigger parameter is set to auto, the click event will be triggered
immediately after the page is loaded.
Option reference
| Property | Description | Default | Allowed Values | Type |
|---|---|---|---|---|
selector |
The element to which the click event should be forwarded. | CSS Selector or self |
CSS Selector | |
trigger |
When the forward action should be fired | click |
`click | auto` |
delay |
Defines time in milliseconds for which the action should be deferred | null | integer | ms |
Note: If the selector is self the handler gets unregistered after it has been run once.