adds a new view to a layout-like widget
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({
id:"mylayout",
rows:[...]
});
// adds a template as a third cell to some existing layout
$$("mylayout").addView({ template:"New one" }, 2);
The method works for layout rows and cols, multiview cells, accordion and carousel panels, toolbar and form controls.