DragContext
This class is created during drag operations of Draggable. It holds the state of an ongoing drag operation.
Configs
3
Configs
3The element that will have the draggingItemCls. This element is determined by the dragItemSelector.
The minimum distance from the touchstart/mousedown/pointerdown that must be moved to actually start a drag operation.
The minimum amount of time a touch must be maintained before it will initiate a drag. Movement prior to this time will cancel the drag in order to allow touch scrolling.
Properties
19
Properties
19Class hierarchy
Other
This property is true if the abort method was called and false otherwise. This
is typically because the user pressed the ESC key, however, a drag can be aborted for other reasons.
This property holds the altKey state of the most recent event.
Returns true if the drag has completed either by mouse/pointerup or the abort method.
This property holds the ctrlKey state of the most recent event.
The element from which the drag operation started.
The event that completed the drag (a mouseup, pointerup or touchend).
The current DOM event being processed.
This property holds the metaKey state of the most recent event.
This property holds the shiftKey state of the most recent event.
This property is true if the drag threshold has been reached and the drag operation is active.
The event that started the drag operation.
This property is true when the drag is in a valid drop state. This can be set to false to indicate the drop
is invalid. Setting to true does not ensure that the property will be true when next read due to other factors
that are required to make the drop valid. For example, setting valid = true will still return false if called
before the drag threshold has not been reached or if the abort method has been
called.
Functions
19
Functions
19Other
Retrieves a data item from the drag source. This method can only be called after the drag has completed.
| Parameter | Type | Description |
|---|---|---|
name | String | String[] | The name of the data item. |
Returns true if the named data item is present.
| Parameter | Type | Description |
|---|---|---|
name | String | The name of the data item. |