LIDOR SYSTEMS

Advanced User Interface Controls and Components

IntegralUI Web

Documentation and API Reference


selectedItem(name, item)

Gets or sets the currently selected item in TreeView directive.

Parameters

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

Return Value

If there is no specified item, this property returns the currently selected item. Otherwise does not return a value.

Remarks

This method is part of IntegralUITreeViewService.

A call to this method will trigger beforeSelect and afterSelect events. By handling beforeSelect event you can prevent selection of specified item using your own custom conditions.

An item can also become selected using the selected-item attribute of TreeView directive. In this case only afterSelect event will be fired.

Version Information

Supported in: v1.0.

Articles & Samples

See Also