Advanced User Interface Controls and Components
Expands or collapses a specified item in TreeView directive.
Param | Type | Details |
---|---|---|
name | String | The value of name attribute of the TreeView directive |
item (optional) | Object | The item to be expanded or collapsed |
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.
Supported in: v1.0.
An example in AngularJS showing how to expand items in TreeView when mouse cursor hovers over item space. Also shows how to expand/collapse an item when its text is clicked.
Explains different ways to expand or collapse items in TreeView for AngularJS. Shows how to expand item on hover or by clicking on its text.