moveTreeItem
Function
Definition
Package:@progress/kendo-react-data-tools
Moves the targeted item in the tree to another position.
Parameters:dataany[]
The data tree.
targetnumber[]The level of the target tree item which will be moved.
destinationnull | number[]The level of the destination tree item where the target item will be moved in. If it is null, the target item will be added at the root level.
subItemsFieldstringThe field which points to the subitems collection of each data item.
Returns:any[]
- The new data tree.