Construct a new context menu.
The options for initializing the menu.
Private _groupPrivate _idPrivate _itemsPrivate _sortReadonly menuThe menu widget which displays the matched context items.
Add an item to the context menu.
A disposable which will remove the item from the menu.
The options for creating the item.
Open the context menu in response to a 'contextmenu' event.
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.
The 'contextmenu' event of interest.
Generated using TypeDoc
An object which implements a universal context menu.
Notes
The items shown in the context menu are determined by CSS selector matching against the DOM hierarchy at the site of the mouse click. This is similar in concept to how keyboard shortcuts are matched in the command registry.