Advanced User Interface Controls and Components

IntegralUI Web

Documentation and API Reference

expand(name, item)

Expands a specified item in TreeView directive.


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

Return Value

This method does not return a value.


This method is part of IntegralUITreeViewService. A call to this method will trigger beforeExpand and afterExpand events. By handling beforeExpand event you can prevent expanding of specified item using your own custom conditions.
An item can also become expanded by setting the expanded variable of item object to true. However, in this case only afterExpand event will be fired.
If there is no specified item, all items in TreeView will become expanded.

Version Information

Supported in: v1.0.

Articles & Samples

See Also