addCell

adds a new tab into a tabbar

void addCell(object view,number index);

Deprecated

instead of it, you can use the addTab method:

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

Parameters

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

Example

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

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
Back to top