ElementEventListener_v2 Op
Add a custom event listener
Summary (oneliner)
Adds a custom event listener to the HTML DOM element.
- Ops.Html.Event.ElementEventListener_v2
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch elementEventListener Example
INPUT PORTS
The HTML DOM element to add the listener to
If multiple elements register an event listener, setting Use Capture
will make sure the listener will be called before the regular (bubble) listeners. For more infos read here: javascript.info/bubbling-and-capturing.
If set the default browser action for the event will not be executed. See developer.mozilla.org.
Stops other elements’ event listeneres from getting called. See developer.mozilla.org.
OUTPUT PORTS
Trigger when the event occured
The event object contains details about the event