collapse()
collapses a tree item by id
collapse(id: string | number): void;
Parameters:
id: string | number
- the id of an item to collapse
Example
tree.collapse("history");
Related sample: Tree. Expand item
collapses a tree item by id
id: string | number
- the id of an item to collapseExample
tree.collapse("history");
Related sample: Tree. Expand item