addView

adds a new cell to the tabview

void addView(object obj);
objobjectcell 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:

  • Mandatory parameters:
    • header (string) - cell header text;
    • body (obj) - configuration of the view inside the cell;
  • Optional parameters:
    • close (boolean) - if true, adds a close icon, thus making a tab closable. False by default;
    • icon (string) - adds a custom icon for the tab.

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.