attachLayout
attaches dhtmlxLayout to a window
dhtmlXLayoutObject attachLayout(string|object conf);
conf | string|object | layout pattern or api-init config |
dhtmlXLayoutObject | dhtmlXLayoutObject 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