GlobalEventHandlers

external interface GlobalEventHandlers(source)

Exposes the JavaScript GlobalEventHandlers to Kotlin

Since Kotlin

1.1

Inheritors

external interface GlobalEventHandlers : JsAny(source)

Exposes the JavaScript GlobalEventHandlers to Kotlin

Since Kotlin

1.8

Inheritors

Properties

Link copied to clipboard
open var onabort: (Event) -> dynamic?
Since Kotlin 1.1
open var onabort: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onblur: (FocusEvent) -> dynamic?
Since Kotlin 1.1
open var onblur: (FocusEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var oncancel: (Event) -> dynamic?
Since Kotlin 1.1
open var oncancel: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var oncanplay: (Event) -> dynamic?
Since Kotlin 1.1
open var oncanplay: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var oncanplaythrough: (Event) -> dynamic?
Since Kotlin 1.1
open var oncanplaythrough: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onchange: (Event) -> dynamic?
Since Kotlin 1.1
open var onchange: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onclick: (MouseEvent) -> dynamic?
Since Kotlin 1.1
open var onclick: (MouseEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onclose: (Event) -> dynamic?
Since Kotlin 1.1
open var onclose: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var oncontextmenu: (MouseEvent) -> dynamic?
Since Kotlin 1.1
open var oncontextmenu: (MouseEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var oncuechange: (Event) -> dynamic?
Since Kotlin 1.1
open var oncuechange: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var ondblclick: (MouseEvent) -> dynamic?
Since Kotlin 1.1
open var ondblclick: (MouseEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var ondrag: (DragEvent) -> dynamic?
Since Kotlin 1.1
open var ondrag: (DragEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var ondragend: (DragEvent) -> dynamic?
Since Kotlin 1.1
open var ondragend: (DragEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var ondragenter: (DragEvent) -> dynamic?
Since Kotlin 1.1
open var ondragenter: (DragEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var ondragexit: (DragEvent) -> dynamic?
Since Kotlin 1.1
open var ondragexit: (DragEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var ondragleave: (DragEvent) -> dynamic?
Since Kotlin 1.1
open var ondragleave: (DragEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var ondragover: (DragEvent) -> dynamic?
Since Kotlin 1.1
open var ondragover: (DragEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var ondragstart: (DragEvent) -> dynamic?
Since Kotlin 1.1
open var ondragstart: (DragEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var ondrop: (DragEvent) -> dynamic?
Since Kotlin 1.1
open var ondrop: (DragEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var ondurationchange: (Event) -> dynamic?
Since Kotlin 1.1
open var ondurationchange: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onemptied: (Event) -> dynamic?
Since Kotlin 1.1
open var onemptied: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onended: (Event) -> dynamic?
Since Kotlin 1.1
open var onended: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onerror: (dynamic, String, Int, Int, Any?) -> dynamic?
Since Kotlin 1.1
open var onerror: (JsAny?, String, Int, Int, JsAny?) -> JsAny??
Since Kotlin 1.8
Link copied to clipboard
open var onfocus: (FocusEvent) -> dynamic?
Since Kotlin 1.1
open var onfocus: (FocusEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var ongotpointercapture: (PointerEvent) -> dynamic?
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open var oninput: (InputEvent) -> dynamic?
Since Kotlin 1.1
open var oninput: (InputEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var oninvalid: (Event) -> dynamic?
Since Kotlin 1.1
open var oninvalid: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onkeydown: (KeyboardEvent) -> dynamic?
Since Kotlin 1.1
open var onkeydown: (KeyboardEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onkeypress: (KeyboardEvent) -> dynamic?
Since Kotlin 1.1
open var onkeypress: (KeyboardEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onkeyup: (KeyboardEvent) -> dynamic?
Since Kotlin 1.1
open var onkeyup: (KeyboardEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onload: (Event) -> dynamic?
Since Kotlin 1.1
open var onload: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onloadeddata: (Event) -> dynamic?
Since Kotlin 1.1
open var onloadeddata: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onloadedmetadata: (Event) -> dynamic?
Since Kotlin 1.1
open var onloadedmetadata: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onloadend: (Event) -> dynamic?
Since Kotlin 1.1
open var onloadend: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onloadstart: (ProgressEvent) -> dynamic?
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open var onlostpointercapture: (PointerEvent) -> dynamic?
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open var onmousedown: (MouseEvent) -> dynamic?
Since Kotlin 1.1
open var onmousedown: (MouseEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onmouseenter: (MouseEvent) -> dynamic?
Since Kotlin 1.1
open var onmouseenter: (MouseEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onmouseleave: (MouseEvent) -> dynamic?
Since Kotlin 1.1
open var onmouseleave: (MouseEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onmousemove: (MouseEvent) -> dynamic?
Since Kotlin 1.1
open var onmousemove: (MouseEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onmouseout: (MouseEvent) -> dynamic?
Since Kotlin 1.1
open var onmouseout: (MouseEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onmouseover: (MouseEvent) -> dynamic?
Since Kotlin 1.1
open var onmouseover: (MouseEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onmouseup: (MouseEvent) -> dynamic?
Since Kotlin 1.1
open var onmouseup: (MouseEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onpause: (Event) -> dynamic?
Since Kotlin 1.1
open var onpause: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onplay: (Event) -> dynamic?
Since Kotlin 1.1
open var onplay: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onplaying: (Event) -> dynamic?
Since Kotlin 1.1
open var onplaying: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onpointercancel: (PointerEvent) -> dynamic?
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open var onpointerdown: (PointerEvent) -> dynamic?
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open var onpointerenter: (PointerEvent) -> dynamic?
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open var onpointerleave: (PointerEvent) -> dynamic?
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open var onpointermove: (PointerEvent) -> dynamic?
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open var onpointerout: (PointerEvent) -> dynamic?
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open var onpointerover: (PointerEvent) -> dynamic?
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open var onpointerup: (PointerEvent) -> dynamic?
Since Kotlin 1.1
open var onpointerup: (PointerEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onprogress: (ProgressEvent) -> dynamic?
Since Kotlin 1.1
open var onprogress: (ProgressEvent) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onratechange: (Event) -> dynamic?
Since Kotlin 1.1
open var onratechange: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onreset: (Event) -> dynamic?
Since Kotlin 1.1
open var onreset: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onresize: (Event) -> dynamic?
Since Kotlin 1.1
open var onresize: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onscroll: (Event) -> dynamic?
Since Kotlin 1.1
open var onscroll: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onseeked: (Event) -> dynamic?
Since Kotlin 1.1
open var onseeked: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onseeking: (Event) -> dynamic?
Since Kotlin 1.1
open var onseeking: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onselect: (Event) -> dynamic?
Since Kotlin 1.1
open var onselect: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onshow: (Event) -> dynamic?
Since Kotlin 1.1
open var onshow: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onstalled: (Event) -> dynamic?
Since Kotlin 1.1
open var onstalled: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onsubmit: (Event) -> dynamic?
Since Kotlin 1.1
open var onsubmit: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onsuspend: (Event) -> dynamic?
Since Kotlin 1.1
open var onsuspend: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var ontimeupdate: (Event) -> dynamic?
Since Kotlin 1.1
open var ontimeupdate: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var ontoggle: (Event) -> dynamic?
Since Kotlin 1.1
open var ontoggle: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onvolumechange: (Event) -> dynamic?
Since Kotlin 1.1
open var onvolumechange: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onwaiting: (Event) -> dynamic?
Since Kotlin 1.1
open var onwaiting: (Event) -> Unit?
Since Kotlin 1.8
Link copied to clipboard
open var onwheel: (WheelEvent) -> dynamic?
Since Kotlin 1.1
open var onwheel: (WheelEvent) -> Unit?
Since Kotlin 1.8

Functions

Link copied to clipboard

For a Dynamic value caught in JS, returns the corresponding Throwable if it was thrown from Kotlin, or null otherwise.

Since Kotlin 1.8
Link copied to clipboard
fun <T : JsAny> JsAny.unsafeCast(): T

Cast JsAny to other Js type without runtime check

Since Kotlin 1.8