EventTarget
js.html.EventTarget (extern class) → AbortSignal, Animation, AudioTrackList, Clipboard, FetchObserver, FontFaceSet, MediaDevices, MediaQueryList, MediaStream, MediaStreamTrack, Node, Notification, Performance, PermissionStatus, Screen, ScreenOrientation, ServiceWorker, ServiceWorkerContainer, ServiceWorkerRegistration, SpeechSynthesis, SpeechSynthesisUtterance, TextTrack, TextTrackCue, TextTrackList, VideoTrackList, Window, WorkerGlobalScope, XMLHttpRequestEventTarget, js.html.audio.AudioNode, js.html.audio.BaseAudioContext, js.html.eme.MediaKeySession, js.html.idb.Database, js.html.idb.Request, js.html.idb.Transaction, js.html.midi.MIDIAccess
EventTarget
is an interface implemented by objects that can receive events and may have listeners for them.
Documentation EventTarget by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Instance Members
addEventListener(type: String, listener: haxe.Function, ?options: haxe.extern.EitherType<AddEventListenerOptions, Bool>, ?wantsUntrusted: Bool): Void
Register an event handler of a specific event type on the EventTarget
.
Name | Type | Default |
---|---|---|
type |
String | |
listener |
haxe.Function | |
options |
haxe.extern.EitherType<AddEventListenerOptions, Bool> | (optional) |
wantsUntrusted |
Bool | (optional) |
removeEventListener(type: String, listener: haxe.Function, ?options: haxe.extern.EitherType<EventListenerOptions, Bool>): Void
Removes an event listener from the EventTarget
.
Name | Type | Default |
---|---|---|
type |
String | |
listener |
haxe.Function | |
options |
haxe.extern.EitherType<EventListenerOptions, Bool> | (optional) |
Dispatch an event to this EventTarget
.
Name | Type |
---|---|
event |
Event |
Returns |
---|
Bool |
new(): Void