Construct a new context menu.
The options for initializing the menu.
Protected
_isProtected
_openedReadonly
menuThe menu widget which displays the matched context items.
Test whether the context menu is disposed.
A signal fired when the context menu is opened.
Add an item to the context menu.
The options for creating the item.
A disposable which will remove the item from the menu.
Open the context menu in response to a 'contextmenu'
event.
The 'contextmenu'
event of interest.
true
if the menu was opened, or false
if no items
matched the event and the menu was not opened.
This method will populate the context menu with items which match the propagation path of the event, then open the menu at the mouse position indicated by the event.
An object which implements a universal context menu. Tweaked to use inline svg icons