Check documentation for the latest version 6.0 of dhtmlxSuite attachLayout DHTMLX Docs

attachLayout

attaches dhtmlxLayout to a cell

dhtmlXLayoutObject attachLayout(string|object conf);

Parameters

confstring|objectlayout pattern or api-init config

Returns

dhtmlXLayoutObjectdhtmlXLayoutObject instance

Example

// pattern only
var myLayout = dhxComponent.cells(id).attachLayout("4H");
 
// api-init config
var myLayout = dhxComponent.cells(id).attachLayout({
    pattern: "4H",
    cells: [
        {id: "a", text: "Navigation", width: 100, header: false},
        {id: "b", text: "Advertisement", height: 100},
        {id: "c", text: "Main Page"},
        {id: "d", text: "Links", collapse: true}
    ]
});

Back to top