The event argument class that is used by query-continue-drag during drags.
Inheritance Hierarchy
EventArgs
QueryContinueDragEventArgs
Remarks
The action property can be used to signal CONTINUE, CANCEL or DROP for the current drag operation.
The dropTarget property contains the current DropTarget during the drag, which may be null if there is currently no DropTarget.
This class cannot be instantiated
Type Details
- yFiles module
- view
Properties
Gets or sets the action.
Property Value
The action.
Gets the current dropTarget or null of there is no drop target.
Gets or sets a value indicating whether this QueryContinueDragEventArgs is handled.
Remarks
Note that this property needs to be set before the function synchronously returns. This means that setting the value in an
async
function after the first await
or in an asynchronous callback, it cannot not be seen by the emitter of the event and the sender will consider the event as not being handled.// wrong:
dragSource.addEventListener('query-continue-drag', async (evt) => {
await something()
evt.handled = true // will be set *after* all other event listeners have been invoked, only
})
// correct:
dragSource.addEventListener('query-continue-drag', async (evt) => {
evt.handled = true // will be set immediately and 'mode' will see the change
await something()
})
Property Value
true
if handled; otherwise, false
.Gets the current state of the keys.
Property Value
The key states.