DHTMLX Docs & Samples Explorer

Index
dhtmlxAccordion
API Methods

### attachTree(rootId)

Required library edition:
Required library file: dhtmlxlayout.js / dhtmlxaccordion.js

attaches dhtmlxTree to a cell, returns a tree object

- rootId - (optional) the id of a virtual root element that is the parent to all top level tree nodes of dhtmlxTree. The default value is '0'.

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