addTab()
adds a new tab into a tabbar
addTab(config: ITabbarConfig, index: number): void;
Parameters:
config: object
- an object of a tabindex: 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:
tab | the name of a tab |
tabCss | the name of the CSS class used for a tab |
css | the name of the CSS class used for a cell |
header | the header of a cell |
Change log:
added in v6.4