Skip to main content


adds a new tab into a tabbar

addTab(config: ITabbarConfig, index: number): void;


  • config: object - an object of a tab
  • index: number - the position to add a tab into


tabbar.addTab({tab: "tab-" + nextTab++, css:"panel flex"}, 0);

Related sample: Tabbar. Add / remove tab

The config object may include the following properties:

tabthe name of a tab
tabCssthe name of the CSS class used for a tab
cssthe name of the CSS class used for a cell
headerthe header of a cell

Change log:

added in v6.4