DragAndDropEventArgs

12 Sep 20251 minute to read

Interface for DragAndDrop event arguments.

Properties

cancel boolean

If you want to cancel this event then, set cancel as true. Otherwise, false.

clonedNode HTMLElement

Return the cloned element

draggedNode HTMLLIElement

Return the currently dragged TreeView node.

draggedNodeData { : }

Return the currently dragged node as array of JSON object from data source.

draggedParentNode Element

Return the dragged element’s source parent

dropIndex number

Returns the dragged/dropped element’s target index position

dropIndicator string

Return the cloned element’s drop status icon while dragging

dropLevel number

Returns the dragged/dropped element’s target level

dropTarget Element

Return the dragged element’s destination parent

droppedNode HTMLLIElement

Return the dropped TreeView node.

droppedNodeData { : }

Return the dropped node as array of JSON object from data source.

event MouseEvent & TouchEvent

Return the actual event.

position string

Denotes the cloned element’s drop position relative to the dropped node while dragging. The available values are,

  1. Inside – Denotes that the cloned element will be appended as the child node of the dropped node.
  2. Before - Denotes that the cloned element will be appended before the dropped node.
  3. After - Denotes that the cloned element will be appended after the dropped node.

preventTargetExpand boolean

Return boolean value for preventing auto-expanding of parent node.

target HTMLElement

Return the target element from which drag starts/end.