Readonly
AT_Readonly
BUBBLING_Readonly
CAPTURING_Readonly
NONEReadonly
altReadonly
bubblesReturns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
Readonly
buttonReadonly
buttonsReadonly
cancelableReturns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
Readonly
clientXReadonly
clientYReadonly
composedReturns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
Readonly
ctrlReadonly
currentReturns the object whose event listener's callback is currently being invoked.
Readonly
dataReturns the DataTransfer object for the event.
Readonly
defaultReturns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
Readonly
detailThe drop action supported or taken by the drop target.
At the start of each event, this value will be 'none'
. During a
'lm-dragover'
event, the drop target must set this value to one
of the supported actions, or the drop event will not occur.
When handling the drop event, the drop target should set this to the action which was actually taken. This value will be reported back to the drag initiator.
Readonly
eventReturns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
Readonly
isReturns true if event was dispatched by the user agent, and false otherwise.
Readonly
metaReadonly
mimeThe mime data associated with the event.
This is mime data provided by the drag initiator. Drop targets should use this data to determine if they can handle the drop.
Readonly
movementXReadonly
movementYReadonly
offsetXReadonly
offsetYReadonly
pageXReadonly
pageYReadonly
proposedThe drop action proposed by the drag initiator.
This is the action which is preferred by the drag initiator. The drop target is not required to perform this action, but should if it all possible.
Readonly
relatedReadonly
screenXReadonly
screenYReadonly
shiftReadonly
sourceThe source object of the drag, as provided by the drag initiator.
For advanced applications, the drag initiator may wish to expose
a source object to the drop targets. That will be provided here
if given by the drag initiator, otherwise it will be null
.
Readonly
srcReadonly
supportedThe drop actions supported by the drag initiator.
If the dropAction
is not set to one of the supported actions
during the 'lm-dragover'
event, the drop event will not occur.
Readonly
targetReturns the object to which event is dispatched (its target).
Readonly
timeReturns the event's timestamp as the number of milliseconds measured relative to the time origin.
Readonly
typeReturns the type of event, e.g. "click", "hashchange", or "submit".
Readonly
viewReadonly
whichReadonly
xReadonly
yReturns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
Optional
bubblesArg: booleanOptional
cancelableArg: booleanOptional
viewArg: null | WindowOptional
detailArg: number
A custom event used for drag-drop operations.
Notes
In order to receive
'lm-dragover'
,'lm-dragleave'
, or'lm-drop'
events, a drop target must cancel the'lm-dragenter'
event by calling the event'spreventDefault()
method.