Skip to main content

addTab()

adds a new tab into a tabbar

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

Parameters:

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

Example

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

Related sample: Tabbar. Add 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