DHTMLX Docs & Samples Explorer

attachMenu()

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

attaches dhtmlxMenu to the whole layout or a cell

//to the whole layout
var dhxMenu = dhxLayout.attachMenu(); // returns menu object
// to a cell
var dhxMenu = dhxLayout.cells(id).attachMenu(); // returns menu object