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

CustomEventListener Op

Namespace: Ops.Html.Event

Op author: tim

Add a custom event listener

Adds a custom event listener to the HTML DOM element.


Element (Object)

The HTML DOM element to add the listener to

Event Name (string /Number)
Use Capture (boolean /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:

Prevent Default (boolean /Number)

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

Stop Propagation (boolean /Number)

Stops other elements’ event listeneres from getting called. See


Event Trigger (Trigger)

Trigger when the event occured

Event Object (Object)

The event object contains details about the event

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

Patches using CustomEventListener

  • Examples
  • Public
  • My Patches