Advanced User Interface Controls and Components
Collapses a specified item in TreeView component.
Param | Type | Details |
---|---|---|
item (optional) | Object | The item to be collapsed |
This method does not return a value.
A call to this method will trigger beforeCollapse and afterCollapse events. By handling beforeCollapse event you can prevent collapsing of specified item using your own custom conditions.
If there is no specified item, all items in TreeView will become collapsed.
Supported in: v1.0.