Documentation

addView

add new view to layout-like component

WebixView addView(object view, [number index] );

Parameters

viewobjectconfiguration of new view
indexnumberindex, at which new view will be added

Returns

WebixViewnew view object

See also

Example

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

Details

The method works for layout rows and cols, multiview cells, accordion and carousel panels, toolbar and form controls.

Back to top