Vue component for configurable menus.
- Source:
Example
<ContextMenu :options="options" />
Methods
(function) data()
Method data
- Source:
(method) hide()
Hides the context menu.
- Source:
(method) invokeCallback(item)
Invokes the callback function for the selected item.
Parameters:
Name | Type | Description |
---|---|---|
item |
Object | The selected item. |
- Source:
(method) show(menu, e)
Displays the context menu.
Parameters:
Name | Type | Description |
---|---|---|
menu |
Object | The menu object to be displayed. |
e |
Event | The event object that triggered the display of the context menu. |
- Source: