DHTMLX Docs & Samples Explorer

attachAccordion()

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxlayout.js / dhtmlxaccordion.js

attaches dhtmlxAccordion to the cell, returns accordion object

Attaching to the layout's cell:

    var dhxAcc = dhxLayout.cells("a").attachAccordion(); // returns accordion object

Attaching to the accordion's cell:

    var dhxAcc2 = dhxAcc.cells(id).attachAccordion(); // returns accordion object