The event argument class that is used by QueryContinueDrag 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.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.QueryContinueDragEventArgs
See Also
Properties
Gets or sets 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.addQueryContinueDragListener(async (sender, args) => {
await something()
args.handled = true // will be set *after* all other event listeners have been invoked, only
})
// correct:
dragSource.addQueryContinueDragListener(async (sender, args) => {
args.handled = true // will be set immediately and 'mode' will see the change
await something()
})
Gets the current state of the keys.