DHTMLX Docs & Samples Explorer

attachLayout(pattern, skin)

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

attaches dhtmlxLayout to a cell, returns a layout object

  • pattern - layout's pattern (3L, 4U, …)
  • skin - optional, the skin from the parent component will applied automatically

Attaching to the layout's cell:

var dhxLayout2 = dhxLayout.cells("a").attachLayout("3L"); // returns layout object

Attaching to the accordion's cell:

var dhxLayout = dhxAcc.cells(id).attachLayout("3L"); // returns layout object