Check documentation for the latest version of dhtmlxSuite attachLayout DHTMLX Docs

attachLayout

attaches dhtmlxLayout to a window

dhtmlXLayoutObject attachLayout(string|object conf);
confstring|objectlayout pattern or api-init config
dhtmlXLayoutObjectdhtmlXLayoutObject instance

Example

// pattern only
var myLayout = myWins.window(id).attachLayout("4H");
 
// api-init config
var myLayout = myWins.window(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