XML node used as the description of new menu items. This node is used in createMenu to dynamically create the menu items if their respective conditions evaluate to true for the given arguments.
Base path for all icon attributes in the config. Default is null.
Helper method to bind an action to a new menu item.
{@link PopupMenu} that is used for adding items and separators.
Enclosing
String that represents the label of the menu item.
Optional URL that represents the icon of the menu item.
Optional function to execute before the optional action. The
function takes an
Optional name of the action to execute in the given editor.
Optional
DOM node that represents the parent menu item.
Optional CSS class for the menu icon.
Optional boolean that specifies if the menu item is enabled. Default is true.
Recursively adds the given items and all of its children into the given menu.
Enclosing
{@link PopupMenu} that is used for adding items and separators.
Optional
Optional mouse event which triggered the menu.
Array of names boolean conditions.
XML node that represents the current menu item.
DOM node that represents the parent menu item.
Enclosing Editor instance.
{@link mxPopupMenu} that is used for adding items and separators.
Optional {@link mxCell} which is under the mousepointer.
Optional mouse event which triggered the menu.
Generated using TypeDoc
Creates popupmenus for mouse events. This object holds an XML node which is a description of the popup menu to be created. In createMenu, the configuration is applied to the context and the resulting menu items are added to the menu dynamically. See createMenu for a description of the configuration format. This class does not create the DOM nodes required for the popup menu, it only parses an XML description to invoke the respective methods on an {@link mxPopupMenu} each time the menu is displayed.
This class uses the {@link DefaultPopupMenuCodec} to read configuration data into an existing instance, however, the actual parsing is done by this class during program execution, so the format is described below.