Solutions
Multiplatform
Server-side
Data science
Android
Docs
Community
Teach
Play
Playground
Examples
Koans
toggle menu
Kotlin libraries
2.1
2.1
2.0
1.9
1.8
1.7
1.6
1.5
1.4
1.3
1.2
1.1
1.0
JS
switch theme
search in API
kotlin-stdlib
/
org.w3c.dom.events
/
Event
Event
JS
open
external
class
Event
(
type
:
String
,
eventInitDict
:
EventInit
=
definedExternally
)
(
source
)
Exposes the JavaScript
Event
to Kotlin
Since Kotlin
1.1
Inheritors
TrackEvent
RelatedEvent
PopStateEvent
HashChangeEvent
PageTransitionEvent
BeforeUnloadEvent
ErrorEvent
PromiseRejectionEvent
MessageEvent
CloseEvent
StorageEvent
CustomEvent
MediaQueryListEvent
UIEvent
WebGLContextEvent
ClipboardEvent
MediaKeyMessageEvent
MediaEncryptedEvent
MediaStreamTrackEvent
OverconstrainedErrorEvent
ServiceWorkerMessageEvent
ExtendableEvent
ProgressEvent
Members
Constructors
Event
Link copied to clipboard
JS
constructor
(
type
:
String
,
eventInitDict
:
EventInit
=
definedExternally
)
Types
Companion
Link copied to clipboard
JS
object
Companion
Since Kotlin
1.1
Properties
bubbles
Link copied to clipboard
JS
open
val
bubbles
:
Boolean
Since Kotlin
1.1
cancelable
Link copied to clipboard
JS
open
val
cancelable
:
Boolean
Since Kotlin
1.1
composed
Link copied to clipboard
JS
open
val
composed
:
Boolean
Since Kotlin
1.1
current
Target
Link copied to clipboard
JS
open
val
currentTarget
:
EventTarget
?
Since Kotlin
1.1
default
Prevented
Link copied to clipboard
JS
open
val
defaultPrevented
:
Boolean
Since Kotlin
1.1
event
Phase
Link copied to clipboard
JS
open
val
eventPhase
:
Short
Since Kotlin
1.1
is
Trusted
Link copied to clipboard
JS
open
val
isTrusted
:
Boolean
Since Kotlin
1.1
target
Link copied to clipboard
JS
open
val
target
:
EventTarget
?
Since Kotlin
1.1
time
Stamp
Link copied to clipboard
JS
open
val
timeStamp
:
Number
Since Kotlin
1.1
type
Link copied to clipboard
JS
open
val
type
:
String
Since Kotlin
1.1
Functions
composed
Path
Link copied to clipboard
JS
fun
composedPath
(
)
:
Array
<
EventTarget
>
Since Kotlin
1.1
init
Event
Link copied to clipboard
JS
fun
initEvent
(
type
:
String
,
bubbles
:
Boolean
,
cancelable
:
Boolean
)
Since Kotlin
1.1
prevent
Default
Link copied to clipboard
JS
fun
preventDefault
(
)
Since Kotlin
1.1
stop
Immediate
Propagation
Link copied to clipboard
JS
fun
stopImmediatePropagation
(
)
Since Kotlin
1.1
stop
Propagation
Link copied to clipboard
JS
fun
stopPropagation
(
)
Since Kotlin
1.1
Thanks for your feedback!
Was this page helpful?
Yes
No
How can we improve?
Enter your name and email address if you would like to receive a follow-up message or
contact our support
.
By submitting this form, I agree that JetBrains s.r.o. ("JetBrains") may use my name, email address, phone number, and country of residence to provide support. I agree that JetBrains may process said data using
third-party services
for this purpose in accordance with the
JetBrains Privacy Policy
.