Advanced User Interface Controls and Components
Occurs when mouse cursor hovers over item space in TreeView component.
Param | Type | Details |
---|---|---|
e | Object | An event object which contains the item |
This event can be handled by creating a function in your application controller $scope and applying this function as value to an attribute in TreeView directive:
The events attribute has a higher priority than the item-hover attribute. If both attributes are set, the value from events attribute is used.
If hoverSelection property value is set to true, whenever mouse cursor hovers over item space, the item can become selected.
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.
A sample which demonstrates how to handle different events in TreeView directive.