New to Kendo UI for Vue? Start a free 30-day trial

Represents a class that analyzes the drag events of the TreeView.

Example
View Source
Loading ...

destinationMeta { itemHierarchicalIndex: string; treeViewGuid: string; }

Returns an object that contains:

  • The itemHierarchicalIndex of the destination item (the item below the dragged item).
  • The guid of the destination TreeView (the TreeView that renders the destination item).

isDropAllowed boolean

Returns true if you can drop the item. Otherwise, returns false.

Definition

Package:@progress/kendo-vue-treeview

Accessors

destinationMeta

{ itemHierarchicalIndex: string; treeViewGuid: string }

Returns an object that contains:

  • The itemHierarchicalIndex of the destination item (the item below the dragged item).
  • The guid of the destination TreeView (the TreeView that renders the destination item).

Returns true if you can drop the item. Otherwise, returns false.

Methods

Returns the drop operation for the current position of the dragged item.

Returns:

"after" | "before" | "child"

  • One of the following values:
  • before—The dragged item is at the start of the destination item.
  • after—The dragged item is at the end of the destination item.
  • child—The dragged item is in the middle of the destination item.
  • undefined—You cannot drop the item.

Initializes the analyzer. Call this method before you call any other method.

Returns:

TreeViewDragAnalyzer

  • The analyzer object of the drag event.