DHTMLX Docs & Samples Explorer

Index
dhtmlxmenu
API Methods

### setOpenMode(mode)

Required library edition:
Required library file: dhtmlxmenu_ext.js

sets open mode for the menu

- mode - win|web, the default mode is web, in the win mode a user should click anywhere to hide the menu, in the web mode - just put the mouse pointer out of the menu area (string)

        menu.setOpenMode("win"); // or "web"