adds a new view to a dashboard
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:"dashboard",
id:"grid",
gridColumns:4, gridRows:3,
cells:[
{ view:"panel", x:0, y:0, dx:1, dy:1, body:{
template:"Single"
}},
{ view:"panel", x:1, y:0, dx:2, dy:1, body:{
template:"Wide 1"
}},
// more columns
]
});
$$("grid").addView({view:"panel",x:1, y:1, dx:1, dy:1, body:{template:"Column1"});
A Dashboard cell possesses its attributes from a GridLayout cell, namely:
The "widget" view may have the following attributes: