Package-level declarations

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

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

Exposes the JavaScript Event to Kotlin

Link copied to clipboard
external interface EventListener

Exposes the JavaScript EventListener to Kotlin

Link copied to clipboard
external interface EventModifierInit : UIEventInit
Link copied to clipboard
abstract external class EventTarget

Exposes the JavaScript EventTarget to Kotlin

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

Exposes the JavaScript FocusEvent to Kotlin

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

Exposes the JavaScript InputEvent to Kotlin

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

Exposes the JavaScript KeyboardEvent to Kotlin

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

Exposes the JavaScript MouseEvent to Kotlin

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

Exposes the JavaScript UIEvent to Kotlin

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

Exposes the JavaScript WheelEvent to Kotlin

Link copied to clipboard
external interface WheelEventInit : MouseEventInit

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
Link copied to clipboard
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
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
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
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
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
Link copied to clipboard
inline fun UIEventInit(view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): UIEventInit
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