Required library edition:
Required library file: dhtmlxcontainer.js
attaches dhtmlxMenu to the cell, returns menu object
Attaching to the layout's cell:
var dhxMenu = dhxLayout.cells("a").attachMenu(); // returns menu object
Attaching to the accordion's cell:
var dhxMenu = dhxAcc.cells(id).attachMenu(); // returns menu object
Attaching to a window:
var dhxMenu = dhxWins.window(id).attachMenu();
Attaching to a tab:
var dhxMenu = dhxTabbar.cells(tabId).attachMenu();