Check documentation for the latest version of dhtmlxSuite addContextZone DHTMLX Docs

addContextZone

adds a context zone to a context menu

void addContextZone(string zoneId);
zoneIdstringid of the object on a page to render as a context zone

Example

<!-- first add node -->
<body>
    <div id="Cnt_zone"> </div>
</body>
 
 
//then init menu and render the node above as a context menu
var myMenu = new dhtmlXMenuObject();
myMenu.renderAsContextMenu();
myMenu.addContextZone("Cnt_zone");

See also
Back to top