adds a new view to a grid layout
view | object | the configuration of the new view |
index | number | the index a new view will be added at |
string|number | the id of the new view |
webix.ui({
view:"gridlayout",
id:"grid",
gridColumns:4, gridRows:3,
cells:[
{ id:"a", template:"Single", x:0, y:0, dx:1, dy:1 },
{ id:"b", template:"Wide 1", x:1, y:0, dx:2, dy:1 }
// more cells
]
});
$$("grid").addView({ template:"Column", x:1, y:1, dx:1, dy:1 });
A GridLayout cell has the following attributes: