clear([index])
Class: Tree.
Description:
Removes all children items of item at specified index. If no index path is specified, [0] root is cleared.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
Array.<number> |
Index path of the item to clear. If omitted, the root node will be cleared. |
Returns:
Returns this Tree component for method chaining.
Type: Tree
