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