addView

adds a new view to a carousel

string|number addView(object view, [number index] );

Parameters

viewobjectthe configuration of the new view
indexnumberthe index a new view will be added at

Returns

string|numberthe id of the new view

Example

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

Related samples

Details

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

See also
Back to top