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