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 |
|---|---|---|
|
|
Array.<number> |
Index path of the item you want to move. |
|
|
Array.<number> |
Index of a new parent for specified item. |
|
|
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
