addView

adds a new cell to the tabview

void addView(object obj);

Parameters

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, add a close icon, thus making a tab closable. False by default;
    • icon (string) - adds a custom icon for tha 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