Skip to main content

collapse()

collapses a tree item by id

collapse(id: Id): void;

Parameters:

id: string | number - the id of an item to collapse

Example

tree.collapse("history");

Related sample: Tree. Expand Item