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

ElementEventListener_v2 Op

ElementEventListener

Add a custom event listener


Adds a custom event listener to the HTML DOM element.


Edit Documentation

Full Name
  • Ops.Html.Event.ElementEventListener_v2
Visibility
  • Core Op - Official cables op
AuthorTest Patches


 

INPUT PORTS


Element (Object)

The HTML DOM element to add the listener to

Event Name (String)
Use Capture (Number:boolean )

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:boolean )

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

Stop Propagation (Number:boolean )

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

OUTPUT PORTS


Event Trigger (Trigger)

Trigger when the event occured

Event Object (Object)

The event object contains details about the event


Usages of ElementEventListener_v2

  • Examples
  • Public
  • My Patches
  • Ops

Changelog


cloned op from Ops.Html.Event.CustomEventListeneruser avatarpandur - 2024-01-30
renameOps.Patch.PHagqL2.EventListener_v2 renamed to Ops.Html.ElementEventListeneruser avatarpandur - 2024-01-30
renameOps.Html.ElementEventListener renamed to Ops.Html.Event.ElementEventListener_v2user avatarpandur - 2024-01-30