DHTMLX Docs & Samples Explorer

addContextZone(zoneId)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxmenu.js

adds a contextual zone to a contextual menu

  • zoneId - id of the object on page to render as a contextual zone

any html object can be used as context zone for menu

    <body>
        <div id="myMenu"> </div>
    </body>

adding context zone to menu

    var menu = new dhtmlXMenuObject();
    menu.renderAsContextMenu();
    // adding context zone
    menu.addContextZone("myMenu");