moveItem(index, toIndex, [insertAt])

Class: Tree.

Description:

Moves one item from one location (index path) to another within the same Tree component.

Parameters:

Name Type Description

index

Array.<number>

Index path of the item you want to move.

toIndex

Array.<number>

Index of a new parent for specified item.

[insertAt]

number

Index position at which to insert the item into parent (apply applies only if the parent item already has some items).

Returns:

Returns this Tree component for method chaining.

Type: Tree