Events
Structure
All emit events carry the current state of the drag operation by means of the following properties :
type
: the type of the data being transferreddata
: the data being transferredposition
: the current position of the mouse cursortop
: the foremost Drop component currently under the mouse cursor if anypreviousTop
: for dragenter and dragleave, the previous value of top if anysource
: the Drag component where the drag originatedsuccess
: whether the drag completed successfully or notnative
: the associated mouse event (or touch event). Can be mousedown/touchstart, mousemove/touchmove or mouseup/touchend.
Mixins
DragAwareMixin
A mixin is available to make components sensitive to drag operations. It adds the following computed to components that incorporate it, reflecting the current state of the drag :
dragInProgress
: true if a drag operation is in progress, false otherwisedragType
: the type of the current drag operationdragData
: the data of the current drag operationdragPosition
: the current position of the mouse relative to the documentdragSource
: the Drag component from which the drag operation originateddragTop
: the foremost Drop component under the mouse if any
The following demo displays information about the current drag operation when it is in progress :