addView

adds a new view to a layout-like widget

string|number addView(object view, [number index] );
viewobjectthe configuration of the new view
indexnumberthe index a new view will be added at
string|numberthe id of the new view

Example

webix.ui({
    id:"mylayout",
    rows:[...]
});
// adds a template as a third cell to some existing layout
$$("mylayout").addView({ template:"New one" }, 2);

Related samples

Details

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.

See also
Back to top