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
/
DragEvent
Drag
Event
JS
open
external
class
DragEvent
(
type
:
String
,
eventInitDict
:
DragEventInit
=
definedExternally
)
:
MouseEvent
(
source
)
Exposes the JavaScript
DragEvent
to Kotlin
Since Kotlin
1.1
Members
Constructors
Drag
Event
Link copied to clipboard
JS
constructor
(
type
:
String
,
eventInitDict
:
DragEventInit
=
definedExternally
)
Types
Companion
Link copied to clipboard
JS
object
Companion
Since Kotlin
1.1
Properties
alt
Key
Link copied to clipboard
JS
open
val
altKey
:
Boolean
Since Kotlin
1.1
bubbles
Link copied to clipboard
JS
open
val
bubbles
:
Boolean
Since Kotlin
1.1
button
Link copied to clipboard
JS
open
val
button
:
Short
Since Kotlin
1.1
buttons
Link copied to clipboard
JS
open
val
buttons
:
Short
Since Kotlin
1.1
cancelable
Link copied to clipboard
JS
open
val
cancelable
:
Boolean
Since Kotlin
1.1
client
X
Link copied to clipboard
JS
open
val
clientX
:
Int
Since Kotlin
1.1
client
Y
Link copied to clipboard
JS
open
val
clientY
:
Int
Since Kotlin
1.1
composed
Link copied to clipboard
JS
open
val
composed
:
Boolean
Since Kotlin
1.1
ctrl
Key
Link copied to clipboard
JS
open
val
ctrlKey
:
Boolean
Since Kotlin
1.1
current
Target
Link copied to clipboard
JS
open
val
currentTarget
:
EventTarget
?
Since Kotlin
1.1
data
Transfer
Link copied to clipboard
JS
open
val
dataTransfer
:
DataTransfer
?
Since Kotlin
1.1
default
Prevented
Link copied to clipboard
JS
open
val
defaultPrevented
:
Boolean
Since Kotlin
1.1
detail
Link copied to clipboard
JS
open
val
detail
:
Int
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
meta
Key
Link copied to clipboard
JS
open
val
metaKey
:
Boolean
Since Kotlin
1.1
offset
X
Link copied to clipboard
JS
open
val
offsetX
:
Double
Since Kotlin
1.1
offset
Y
Link copied to clipboard
JS
open
val
offsetY
:
Double
Since Kotlin
1.1
page
X
Link copied to clipboard
JS
open
val
pageX
:
Double
Since Kotlin
1.1
page
Y
Link copied to clipboard
JS
open
val
pageY
:
Double
Since Kotlin
1.1
region
Link copied to clipboard
JS
open
val
region
:
String
?
Since Kotlin
1.1
related
Target
Link copied to clipboard
JS
open
val
relatedTarget
:
EventTarget
?
Since Kotlin
1.1
screen
X
Link copied to clipboard
JS
open
val
screenX
:
Int
Since Kotlin
1.1
screen
Y
Link copied to clipboard
JS
open
val
screenY
:
Int
Since Kotlin
1.1
shift
Key
Link copied to clipboard
JS
open
val
shiftKey
:
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
view
Link copied to clipboard
JS
open
val
view
:
Window
?
Since Kotlin
1.1
x
Link copied to clipboard
JS
open
val
x
:
Double
Since Kotlin
1.1
y
Link copied to clipboard
JS
open
val
y
:
Double
Since Kotlin
1.1
Functions
composed
Path
Link copied to clipboard
JS
fun
composedPath
(
)
:
Array
<
EventTarget
>
Since Kotlin
1.1
get
Modifier
State
Link copied to clipboard
JS
fun
getModifierState
(
keyArg
:
String
)
:
Boolean
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
.