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);
Although this method is supported, datalayout creates child views based on the incoming data. If you need to add a new view, consider using the CRUD operations.