DHTMLX Docs & Samples Explorer

setVisibleArea(x1, x2, y1, y2)

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

sets the area in which the menu can appear, if the area is not set, the menu will occupy all available visible space

  • x1, x2 - int, leftmost and rightmost coordinates by x axis
  • y1, y2 - int, topmost and bottommost coordinates by y axis
    menu.setVisibleArea(x1, x2, y1, y2);