Skip to content

evt

evt(element, type, cb, capture?): void

Defined in: core/dom/events.ts:37

Adds an event listener and records it in Events.

EventTarget

Element, document or window to listen on.

string

Event type, e.g. click.

EventListener

Listener.

boolean

Use the capture phase. Defaults to false.

void