C

QueryContinueDragEventArgs

The event argument class that is used by query-continue-drag during drags.

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

See Also

Developer's Guide

Members

No filters for this type

Properties

Gets or sets the action.
conversionfinal

Property Value

The action.
Gets the current dropTarget or null of there is no drop target.
readonlyfinal
Gets a value indicating whether the escape key had been pressed.
readonlyfinal

Property Value

true if escape was pressed; otherwise, false.
Gets or sets a value indicating whether this QueryContinueDragEventArgs is handled.
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()
})
final

Property Value

true if handled; otherwise, false.
Gets the current state of the keys.
readonlyfinal

Property Value

The key states.