Specifies if submenus should be expanded on mouseover. Default is false.
Specifies if cells should be deselected if a popupmenu is displayed for the diagram background. Default is true.
Specifies if events are handled. Default is true.
Holds the event names and associated listeners in an array. The array contains the event name followed by the respective listener for each registered listener.
Specifies if events can be fired. Default is true.
Optional source for events. Default is null.
Optional
factoryFunction that is used to create the popup menu. The function takes the current panning handler, the Cell under the mouse and the mouse event that triggered the call as arguments.
Reference to the enclosing Graph.
Contains the number of times
Specifies if any labels should be visible. Default is true.
Screen X-coordinate of the mouse down event.
Screen Y-coordinate of the mouse down event.
Specifies if cells should be selected if a popupmenu is displayed for them. Default is true.
Specifies if separators should only be added if a menu item follows them. Default is false.
URL of the image to be used for the submenu icon.
X-coordinate of the mouse down event.
Y-coordinate of the mouse down event.
Specifies if popupmenus should be activated by clicking the left mouse button. Default is false.
Specifies the zIndex for the popupmenu and its shadow. Default is 1006.
Static
pluginAdds the given item to the given parent item. If no parent item is specified then the item is added to the top-level menu. The return value may be used as the parent argument, ie. as a submenu item. The return value is the table row that represents the item.
Paramters:
title - String that represents the title of the menu item.
image - Optional URL for the image icon.
funct - Function associated that takes a mouseup or touchend event.
parent - Optional item returned by
Optional
image: null | stringOptional
funct: null | ((evt: MouseEvent) => void)Binds the specified function to the given event name. If no event name is given, then the listener is registered for all events.
The parameters of the listener are the sender and an EventObject.
Adds a horizontal separator in the given parent item or the top-level menu if no parent is specified.
Optional item returned by
Optional boolean to ignore
Creates the nodes required to add submenu items inside the given parent
item. This is called in
An item returned by
Dispatches the given event to the listeners which are registered for the event. The sender argument is optional. The current execution scope ("this") is used for the listener invocation (see Utils#bind).
Example:
fireEvent(new mxEventObject("eventName", key1, val1, .., keyN, valN))
EventObject that represents the event.
Optional sender to be passed to the listener. Default value is
the return value of
Removes all submenus inside the given parent.
An item returned by
Returns true if the given event is a popupmenu trigger for the optional given cell.
MouseEvent that represents the mouse event.
Handles the event by initiating the panning. By consuming the event all subsequent events of the gesture are redirected to this handler.
Handles the event by updating the panning on the graph.
Handles the event by setting the translation on the view or showing the popupmenu.
Shows the popup menu for the given event and cell.
Example:
graph.getPlugin('PanningHandler').popup(x, y, cell, evt)
{
mxUtils.alert('Hello, World!');
}
Shows the submenu inside the given parent row.
Event handler that creates popupmenus.
Relates to MaxPopupMenu.