LIDOR SYSTEMS

Advanced User Interface Controls and Components

IntegralUI Web

Documentation and API Reference


collapse(name, item)

Collapses a specified item in TreeView directive.

Parameters

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

Return Value

This method does not return a value.

Remarks

This method is part of IntegralUITreeViewService. 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.
An item can also become collapsed by setting the expanded variable of item object to false. However, in this case only afterCollapse event will be fired.
If there is no specified item, all items in TreeView will become collapsed.

Version Information

Supported in: v1.0.

Articles & Samples

See Also