Event

open external class Event (source)

Platform and version requirements: JS

Exposes the JavaScript Event to Kotlin

Constructors

<init>

Event(
    type: String,
    eventInitDict: EventInit = definedExternally)

Exposes the JavaScript Event to Kotlin

Properties

bubbles

open val bubbles: Boolean

cancelable

open val cancelable: Boolean

composed

open val composed: Boolean

currentTarget

open val currentTarget: EventTarget?

defaultPrevented

open val defaultPrevented: Boolean

eventPhase

open val eventPhase: Short

isTrusted

open val isTrusted: Boolean

target

open val target: EventTarget?

timeStamp

open val timeStamp: Number

type

open val type: String

Functions

composedPath

fun composedPath(): Array<EventTarget>

initEvent

fun initEvent(
    type: String,
    bubbles: Boolean,
    cancelable: Boolean)

preventDefault

fun preventDefault()

stopImmediatePropagation

fun stopImmediatePropagation()

stopPropagation

fun stopPropagation()

Inherited Functions

equals

open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

hashCode

open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

toString

open fun toString(): String

Returns a string representation of the object.

Companion Object Properties

AT_TARGET

val AT_TARGET: Short

BUBBLING_PHASE

val BUBBLING_PHASE: Short

CAPTURING_PHASE

val CAPTURING_PHASE: Short

NONE

val NONE: Short

Inheritors

BeforeUnloadEvent

open external class BeforeUnloadEvent : Event

Exposes the JavaScript BeforeUnloadEvent to Kotlin

CloseEvent

open external class CloseEvent : Event

Exposes the JavaScript CloseEvent to Kotlin

CustomEvent

open external class CustomEvent : Event

Exposes the JavaScript CustomEvent to Kotlin

ErrorEvent

open external class ErrorEvent : Event

Exposes the JavaScript ErrorEvent to Kotlin

ExtendableEvent

open external class ExtendableEvent : Event

Exposes the JavaScript ExtendableEvent to Kotlin

HashChangeEvent

open external class HashChangeEvent : Event

Exposes the JavaScript HashChangeEvent to Kotlin

MediaQueryListEvent

open external class MediaQueryListEvent : Event

Exposes the JavaScript MediaQueryListEvent to Kotlin

MessageEvent

open external class MessageEvent : Event

Exposes the JavaScript MessageEvent to Kotlin

PageTransitionEvent

open external class PageTransitionEvent : Event

Exposes the JavaScript PageTransitionEvent to Kotlin

PopStateEvent

open external class PopStateEvent : Event

Exposes the JavaScript PopStateEvent to Kotlin

ProgressEvent

open external class ProgressEvent : Event

Exposes the JavaScript ProgressEvent to Kotlin

PromiseRejectionEvent

open external class PromiseRejectionEvent : Event

Exposes the JavaScript PromiseRejectionEvent to Kotlin

RelatedEvent

open external class RelatedEvent : Event

ServiceWorkerMessageEvent

open external class ServiceWorkerMessageEvent : Event

Exposes the JavaScript ServiceWorkerMessageEvent to Kotlin

StorageEvent

open external class StorageEvent : Event

Exposes the JavaScript StorageEvent to Kotlin

TrackEvent

open external class TrackEvent : Event

UIEvent

open external class UIEvent : Event

Exposes the JavaScript UIEvent to Kotlin

WebGLContextEvent

open external class WebGLContextEvent : Event

Exposes the JavaScript WebGLContextEvent to Kotlin