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