Skip to main content

toggle()

opens/closes a tree item by id

toggle(id: Id): void;

Parameters:

id: string | number - the id of a tree item to toggle

Example

tree.toggle("history");

Related sample: Tree. Toggle Item