Gets the ContextMenu context.
The context can be any object that you need to be provides to the callbacks configured on ContextMenu.items.
This must be set before calling ContextMenu.show.
Sets the ContextMenu context.
The context can be any object that you need to be provides to the callbacks configured on ContextMenu.items.
This must be set before calling ContextMenu.show.
Gets whether this ContextMenu is enabled.
ContextMenu.show does nothing while this is false.
Sets whether this ContextMenu is enabled.
Hides the menu when disabling.
Gets the ContextMenu items.
These can be updated dynamically at any time.
See class documentation for an example.
Sets the ContextMenu items.
These can be updated dynamically at any time.
See class documentation for an example.
Gets whether this ContextMenu is currently shown or not.
Whether this ContextMenu is shown.
Destroys this ContextMenu.
Fires an event at this ContextMenu.
The event type name
The event parameters
Hides this ContextMenu.
Fires a "hidden" event when hidden.
Subscribes to an event fired at this ContextMenu.
The event
Callback fired on the event
Shows this ContextMenu at the given page coordinates.
Does nothing when ContextMenu.enabled is false.
Logs error to console and does nothing if ContextMenu.context has not been set.
Fires a "shown" event when shown.
Page X-coordinate.
Page Y-coordinate.
Generated using TypeDoc
A customizable HTML context menu.