Required library edition:
Required library file: dhtmlxcontainer.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 = dhxAccordion.cells(itemID).attachAccordion();
Attaching to a window:
var dhxAcc3 = dhxWins.window(id).attachAccordion();
Attaching to a tab:
var dhxAcc4 = dhxTabbar.cells(tabId).attachAccordion();