add new view to layout-like component
view | object | configuration of new view |
index | number | index, at which new view will be added |
WebixView | new view object |
webix.ui({
id:"mylayout",
rows:[...]
});
//adds template as third cell to some existing layout
$$("smylayout").addView({ template:"New one" }, 2);
The method works for layout rows and cols, multiview cells, accordion and carousel panels, toolbar and form controls.
Back to top