Advanced User Interface Controls and Components
Occurs when item is clicked using right mouse button in TreeView component.
Param | Type | Details |
---|---|---|
e | Object | An event object which contains the item and mousePos objects |
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-rightclick attribute. If both attributes are set, the value from events attribute is used.
The mousePos object associated with this event holds coordinates of mouse position relative to the parent page.
Supported in: v1.0.
An example on how to create and add a custom context menu to specific item in AngularJS TreeView directive. Each item can have its own separate context menu with custom action set in your code.
Explains how to handle the right-click event in TreeView for AngularJS. Use this event to show context menu or custom popup windows.
A sample which demonstrates how to handle different events in TreeView directive.