moveItems(indexes, toIndex, [insertAt])

Class: Tree.

Description:

Moves one or more items from one location (index path) to another within the same Tree component. Items will be inserted in the order they are in the provided indexes array.

Parameters:

Name Type Description

indexes

Array.<Array.<number>>

Array of index arrays of items you want to move.

toIndex

Array.<number>

Index of a new parent for specified items.

[insertAt]

number

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

Returns:

Returns this Tree component for method chaining.

Type: Tree