Check documentation for the latest version of dhtmlxSuite getContextMenu DHTMLX Docs

getContextMenu

returns the context menu object attached to a window

dhtmlXMenuObject getContextMenu();
dhtmlXMenuObjectthe context menu instance

Example

// attach a global context menu to windows' icons
var myMenu = dhxWins.attachContextMenu();
// somewhere in a different place
var attachedMenu = dhxWins.getContextMenu();
 
 
// attach a custom context menu to icon for the window #2
var myMenu2 = w2.attachContextMenu();
// somewhere in a different place
var attachedMenu = w2.getContextMenu();

Back to top