ElementEventListener_v2 Op
Add a custom event listener
Summary (oneliner)
<p>Adds a custom event listener to the HTML DOM element.</p>
- 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
<p>The HTML DOM element to add the listener to</p>
<i>boolean</i>
)<p>If multiple elements register an event listener, setting <code>Use Capture</code> will make sure the listener will be called before the regular (bubble) listeners. For more infos read here: <a href="https://javascript.info/bubbling-and-capturing">javascript.info/bubbling-and-capturing</a>.</p>
<i>boolean</i>
)<p>If set the default browser action for the event will not be executed. See <a href="https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault">developer.mozilla.org</a>.</p>
<i>boolean</i>
)<p>Stops other elements’ event listeneres from getting called. See <a href="https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation">developer.mozilla.org</a>.</p>
OUTPUT PORTS
<p>Trigger when the event occured</p>
<p>The event object contains details about the event</p>