DHTMLX Docs & Samples Explorer

setOpenMode(mode)

Required library edition: This method works with any edition of DHTMLX library
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"