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