beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
Ops.Html.Event.CustomEventListener

CustomEventListener
op id:0e299bb2-d9e8-4b95-9dd5-ad730c26a791
Add a custom event listener

summary (oneliner)

Adds a custom event listener to the HTML DOM element.

doc

issues

youtube id

collections

related ops

Inputs

Element (Object)

The HTML DOM element to add the listener to


Event Name (Number)

Use Capture (Number)

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.


Prevent Default (Number)

If set the default browser action for the event will not be executed. See developer.mozilla.org.


Stop Propagation (Number)

Stops other elements’ event listeneres from getting called. See developer.mozilla.org.


Outputs

Event Trigger (Function)

Trigger when the event occured


Event Object (Object)

The event object contains details about the event


Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using CustomEventListener

Public Patches using CustomEventListener