# dhtmlxmenu:api_method_dhtmlxmenuobject_setvisiblearea [DHX documentation]

DHTMLX Docs & Samples Explorer

Index
dhtmlxmenu
API Methods

### setVisibleArea(x1, x2, y1, y2)

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