TreeViewDragAnalyzer
Class
A class which provides an API for analyzing the drag events
of the TreeView.
Change Theme
Theme
Loading ...
destinationMeta { itemHierarchicalIndex: string; treeViewGuid: string; }
Returns an object which contains:
- The
itemHierarchicalIndexof the destination item (the item below the dragged item) and - The
guidof the destination TreeView (the TreeView which renders the destination item).
isDropAllowed boolean
Returns true if dropping is allowed. Otherwise, returns false.
Definition
Package:@progress/kendo-vue-treeview
Accessors
destinationMeta
{ itemHierarchicalIndex: string; treeViewGuid: string }
Returns an object which contains:
- The
itemHierarchicalIndexof the destination item (the item below the dragged item) and - The
guidof the destination TreeView (the TreeView which renders the destination item).
isDropAllowed
boolean
Returns true if dropping is allowed. Otherwise, returns false.
Methods
Returns the specific drop operation.
Returns:
"after" | "before" | "child"
- The following values are returned:
before—Indicates that the dragged item is positioned at the beginning of the destination item.after—Indicates that the dragged item is positioned at the end of the destination item.child—Indicates that the dragged item is positioned in the middle of the destination item.undefined—Indicates that dropping is not allowed.
The method which initializes the analyzer. Invoke the method before you call any other methods.
Returns:
- The analyzer object of the
dragevent.