DHTMLX Docs & Samples Explorer

Index
dhtmlxmenu
API Methods

### addContextZone(zoneId)

Required library edition:
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");