Package-level declarations

Kotlin JavaScript wrappers for the DOM events API.

Kotlin JavaScript wrappers for the DOM events API.

Types

Link copied to clipboard
open external class CompositionEvent(type: String, eventInitDict: CompositionEventInit = definedExternally) : UIEvent

Exposes the JavaScript CompositionEvent to Kotlin

Since Kotlin 1.1
open external class CompositionEvent(type: String, eventInitDict: CompositionEventInit = definedExternally) : UIEvent, JsAny

Exposes the JavaScript CompositionEvent to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface CompositionEventInit : UIEventInit
Since Kotlin 1.1
external interface CompositionEventInit : UIEventInit, JsAny
Since Kotlin 1.8
Link copied to clipboard
open external class Event(type: String, eventInitDict: EventInit = definedExternally)

Exposes the JavaScript Event to Kotlin

Since Kotlin 1.1
open external class Event(type: String, eventInitDict: EventInit = definedExternally) : JsAny

Exposes the JavaScript Event to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface EventListener

Exposes the JavaScript EventListener to Kotlin

Since Kotlin 1.1
external interface EventListener : JsAny

Exposes the JavaScript EventListener to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface EventModifierInit : UIEventInit
Since Kotlin 1.1
external interface EventModifierInit : UIEventInit, JsAny
Since Kotlin 1.8
Link copied to clipboard
abstract external class EventTarget

Exposes the JavaScript EventTarget to Kotlin

Since Kotlin 1.1
abstract external class EventTarget : JsAny

Exposes the JavaScript EventTarget to Kotlin

Since Kotlin 1.8
Link copied to clipboard
open external class FocusEvent(type: String, eventInitDict: FocusEventInit = definedExternally) : UIEvent

Exposes the JavaScript FocusEvent to Kotlin

Since Kotlin 1.1
open external class FocusEvent(type: String, eventInitDict: FocusEventInit = definedExternally) : UIEvent, JsAny

Exposes the JavaScript FocusEvent to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface FocusEventInit : UIEventInit
Since Kotlin 1.1
external interface FocusEventInit : UIEventInit, JsAny
Since Kotlin 1.8
Link copied to clipboard
open external class InputEvent(type: String, eventInitDict: InputEventInit = definedExternally) : UIEvent

Exposes the JavaScript InputEvent to Kotlin

Since Kotlin 1.1
open external class InputEvent(type: String, eventInitDict: InputEventInit = definedExternally) : UIEvent, JsAny

Exposes the JavaScript InputEvent to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface InputEventInit : UIEventInit
Since Kotlin 1.1
external interface InputEventInit : UIEventInit, JsAny
Since Kotlin 1.8
Link copied to clipboard
open external class KeyboardEvent(type: String, eventInitDict: KeyboardEventInit = definedExternally) : UIEvent

Exposes the JavaScript KeyboardEvent to Kotlin

Since Kotlin 1.1
open external class KeyboardEvent(type: String, eventInitDict: KeyboardEventInit = definedExternally) : UIEvent, JsAny

Exposes the JavaScript KeyboardEvent to Kotlin

Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open external class MouseEvent(type: String, eventInitDict: MouseEventInit = definedExternally) : UIEvent, UnionElementOrMouseEvent

Exposes the JavaScript MouseEvent to Kotlin

Since Kotlin 1.1
open external class MouseEvent(type: String, eventInitDict: MouseEventInit = definedExternally) : UIEvent, UnionElementOrMouseEvent, JsAny

Exposes the JavaScript MouseEvent to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface MouseEventInit : EventModifierInit
Since Kotlin 1.1
external interface MouseEventInit : EventModifierInit, JsAny
Since Kotlin 1.8
Link copied to clipboard
open external class UIEvent(type: String, eventInitDict: UIEventInit = definedExternally) : Event

Exposes the JavaScript UIEvent to Kotlin

Since Kotlin 1.1
open external class UIEvent(type: String, eventInitDict: UIEventInit = definedExternally) : Event, JsAny

Exposes the JavaScript UIEvent to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface UIEventInit : EventInit
Since Kotlin 1.1
external interface UIEventInit : EventInit, JsAny
Since Kotlin 1.8
Link copied to clipboard
open external class WheelEvent(type: String, eventInitDict: WheelEventInit = definedExternally) : MouseEvent

Exposes the JavaScript WheelEvent to Kotlin

Since Kotlin 1.1
open external class WheelEvent(type: String, eventInitDict: WheelEventInit = definedExternally) : MouseEvent, JsAny

Exposes the JavaScript WheelEvent to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface WheelEventInit : MouseEventInit
Since Kotlin 1.1
external interface WheelEventInit : MouseEventInit, JsAny
Since Kotlin 1.8

Functions

Link copied to clipboard
inline fun CompositionEventInit(data: String? = "", view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): CompositionEventInit
Since Kotlin 1.1
fun CompositionEventInit(data: String? = "", view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): CompositionEventInit
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
inline fun EventModifierInit(ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): EventModifierInit
Since Kotlin 1.1
fun EventModifierInit(ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): EventModifierInit
Since Kotlin 1.8
Link copied to clipboard
inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): FocusEventInit
Since Kotlin 1.1
fun FocusEventInit(relatedTarget: EventTarget? = null, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): FocusEventInit
Since Kotlin 1.8
Link copied to clipboard
inline fun InputEventInit(data: String? = "", isComposing: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): InputEventInit
Since Kotlin 1.1
fun InputEventInit(data: String? = "", isComposing: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): InputEventInit
Since Kotlin 1.8
Link copied to clipboard
inline fun KeyboardEventInit(key: String? = "", code: String? = "", location: Int? = 0, repeat: Boolean? = false, isComposing: Boolean? = false, ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): KeyboardEventInit
Since Kotlin 1.1
fun KeyboardEventInit(key: String? = "", code: String? = "", location: Int? = 0, repeat: Boolean? = false, isComposing: Boolean? = false, ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): KeyboardEventInit
Since Kotlin 1.8
Link copied to clipboard
inline fun MouseEventInit(screenX: Int? = 0, screenY: Int? = 0, clientX: Int? = 0, clientY: Int? = 0, button: Short? = 0, buttons: Short? = 0, relatedTarget: EventTarget? = null, region: String? = null, ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): MouseEventInit
Since Kotlin 1.1
fun MouseEventInit(screenX: Int? = 0, screenY: Int? = 0, clientX: Int? = 0, clientY: Int? = 0, button: Short? = 0, buttons: Short? = 0, relatedTarget: EventTarget? = null, region: String? = null, ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): MouseEventInit
Since Kotlin 1.8
Link copied to clipboard
inline fun UIEventInit(view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): UIEventInit
Since Kotlin 1.1
fun UIEventInit(view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): UIEventInit
Since Kotlin 1.8
Link copied to clipboard
inline fun WheelEventInit(deltaX: Double? = 0.0, deltaY: Double? = 0.0, deltaZ: Double? = 0.0, deltaMode: Int? = 0, screenX: Int? = 0, screenY: Int? = 0, clientX: Int? = 0, clientY: Int? = 0, button: Short? = 0, buttons: Short? = 0, relatedTarget: EventTarget? = null, region: String? = null, ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): WheelEventInit
Since Kotlin 1.1
fun WheelEventInit(deltaX: Double? = 0.0, deltaY: Double? = 0.0, deltaZ: Double? = 0.0, deltaMode: Int? = 0, screenX: Int? = 0, screenY: Int? = 0, clientX: Int? = 0, clientY: Int? = 0, button: Short? = 0, buttons: Short? = 0, relatedTarget: EventTarget? = null, region: String? = null, ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): WheelEventInit
Since Kotlin 1.8