addTab

adds a new tab into a tabbar

void addTab(object view,number index);

Parameters

viewobjectan object of a tab
indexnumberthe position to add a tab into

Example

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

Related samples

Details

The view 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
See also
Change log

added in v6.4

Back to top