DHTMLX Docs & Samples Explorer

attachTree()

Required library edition: This method works with any edition of DHTMLX library
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();