Package org.w3c.dom.events

Kotlin JavaScript wrappers for the DOM events API.

Types

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

Exposes the JavaScript CompositionEvent to Kotlin

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

Exposes the JavaScript Event to Kotlin

EventListener
Link copied to clipboard
external interface EventListener

Exposes the JavaScript EventListener to Kotlin

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

Exposes the JavaScript EventTarget to Kotlin

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

Exposes the JavaScript FocusEvent to Kotlin

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

Exposes the JavaScript InputEvent to Kotlin

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

Exposes the JavaScript KeyboardEvent to Kotlin

KeyboardEventInit
Link copied to clipboard
external interface KeyboardEventInit : EventModifierInit
MouseEvent
Link copied to clipboard
open external class MouseEvent(type: String, eventInitDict: MouseEventInit) : UIEvent, UnionElementOrMouseEvent

Exposes the JavaScript MouseEvent to Kotlin

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

Exposes the JavaScript UIEvent to Kotlin

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

Exposes the JavaScript WheelEvent to Kotlin

WheelEventInit
Link copied to clipboard
external interface WheelEventInit : MouseEventInit

Functions

CompositionEventInit
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
EventListener
Link copied to clipboard
fun EventListener(handler: (Event) -> Unit): EventListener
EventModifierInit
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
FocusEventInit
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
InputEventInit
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
KeyboardEventInit
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
MouseEventInit
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
UIEventInit
Link copied to clipboard
inline fun UIEventInit(view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): UIEventInit
WheelEventInit
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