[ type ] DragEvent

Description:

Drag event received by the onDragEvents() handler callback.

Type: Object

Properties:

Name Type Description

target

object

The component that triggered the event.

type

string

One of dragstart, dragend, cancel.

[action]

string

One of the values of enum DragDropAction. Present when applicable.

[x]

number

X position of the pointer relative to this component. Present when type is dragstart or dragend.

[y]

number

Y position of the pointer relative to this component. Present when type is dragstart or dragend.

[screenX]

number

X position of the pointer relative to the screen. Present when type is dragstart or dragend.

[screenY]

number

Y position of the pointer relative to the screen. Present when type is dragstart or dragend.

[button]

number

Indicates a pointing device button involved in dragging. Value of MouseButton enum.

[modifiers]

number

Keyboard modifiers (bitmask or flags). Present when type is dragstart.

[modifiersText]

string

Human-readable keyboard modifiers. Present when type is dragstart.

[alt]

boolean

Indicates if ALT key was pressed. Present when type is dragstart.

[shift]

boolean

Indicates if SHIFT key was pressed. Present when type is dragstart.

[ctrl]

boolean

Indicates if CTRL key was pressed. Present when type is dragstart.

[selected]

Array.<number>

Selected indexes of a List component whose items are being dragged. Present only when dragging List items.

Also See: