Returns 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.
Returns 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.
Returns 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.
Returns the object whose event listener's callback is currently being invoked.
Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
The 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.
Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
Returns true if event was dispatched by the user agent, and false otherwise.
The 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.
The 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.
The 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
.
The 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.
Returns the object to which event is dispatched (its target).
Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
Returns the type of event, e.g. "click", "hashchange", or "submit".
Returns 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.
If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
Generated using TypeDoc
A custom event type 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.This interface will be deprecated in @lumino/dragdrop@^2.0.0 in favor of
Drag.Event
.