Custom codec for configuring mxDefaultPopupMenus. This class is created and registered dynamically at load time and used implicitly via mxCodec and the mxCodecRegistry. This codec only reads configuration data for existing popup menus, it does not encode or create menus. Note that this codec only passes the configuration node to the popup menu, which uses the config to dynamically create menus. See mxDefaultPopupMenu.createMenu.
mxDefaultPopupMenuCodec | Custom codec for configuring mxDefaultPopupMenus. |
Functions | |
encode | Returns null. |
decode | Uses the given node as the config for mxDefaultPopupMenu. |
codec.decode = function( dec, node, into )
Uses the given node as the config for mxDefaultPopupMenu.
Returns null.
codec.encode = function( enc, obj )
Uses the given node as the config for mxDefaultPopupMenu.
codec.decode = function( dec, node, into )
This function is called from mxEditor to add items to the given menu based on config.
mxDefaultPopupMenu.prototype.createMenu = function( editor, menu, cell, evt )