TreeViewDragAnalyzer
Class
Represents a class that analyzes the drag events of the TreeView.
Loading ...
destinationMeta { itemHierarchicalIndex: string; treeViewGuid: string; }
Returns an object that contains:
- The
itemHierarchicalIndexof the destination item (the item below the dragged item). - The
guidof 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
itemHierarchicalIndexof the destination item (the item below the dragged item). - The
guidof the destination TreeView (the TreeView that renders the destination item).
isDropAllowed
boolean
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:
- The analyzer object of the
dragevent.