toggle()
opens/closes a tree item by id
toggle(id: string | number): void;
Parameters:
id: string | number
- the id of a tree item to toggle
Example
tree.toggle("history");
Related sample: Tree. Toggle item
opens/closes a tree item by id
id: string | number
- the id of a tree item to toggleExample
tree.toggle("history");
Related sample: Tree. Toggle item