New to KendoReactStart a free 30-day trial

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.

subItemsFieldstring

The field which points to the subitems collection of each data item.

Returns:

any[]

  • The new data tree.
In this article
Definition
Not finding the help you need?
Contact Support