Advanced User Interface Controls and Components

IntegralUI Web

Documentation and API Reference

toggle(name, item)

Expands or collapses a specified item in TreeView directive.


nameStringThe value of name attribute of the TreeView directive
item (optional)ObjectThe item to be expanded or collapsed

Return Value

This method does not return a value.


This method is part of IntegralUITreeViewService. Depending on current state of specified item, a call to this method will trigger either beforeExpand and afterExpand events, or beforeCollapse and afterCollapse events.
If there is no specified item, all items in TreeView will become expanded or collapsed.

Version Information

Supported in: v1.0.

Articles & Samples

See Also