addView

adds a new cell to the tabview

void addView(object obj);
obj
objectcell configuration object

Example

$$("tabview1").addView({
    header:"New Tab",
    /*optional
    close:true, 
    icon:"users",*/
    body:{
        template:"New content "+webix.uid()
    }
});

Related samples

Details

Configuration

Configuration object contains setting for the cell header and body:

Additional Info

There also exists a possibility to manually add a cell and a corresponding tab - check the related article.

For these needs, Webix layouts possess a separate addView method for adding child cells, rows and columns.

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.