Advanced User Interface Controls and Components
Gets or sets the currently selected 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 selected |
If there is no specified item, this property returns the currently selected item. Otherwise does not return a value.
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.
Supported in: v1.0.
Learn how to select multiple items in AngularJS TreeView directive. Selection can be done by using the mouse clicks or shortcut keys: CTRL and SHIFT key.