Creating a new tab on the Workarea

About this task
The API BTTUtil.workarea.addTab can provide four modes when creating a new tab.
  • Mode I: Using API BTTUtil.workarea.addTab, a new tab is added at the end of the Workarea and the ID of the tab is returned.
    Table 1. Mode I
    Input Output
    null A new tab is added at the end of the workarea and the ID of the tab is returned.
    You can refer to the following screen capture:
    Screen capture showing creating a new tab at the end of the Workarea
  • Mode II: Using API BTTUtil.workarea.addTab with a tab attribute parameter, a new tab is added at the end of the Workarea and the ID of the tab is returned.
    Table 2. Mode II
    Input Output
    P1(tab attributes) A new tab with the specified tab attributes is added at the end of the Workarea and the ID of the tab is returned.
    You can refer to the following screen capture:
    Screen capture showing creating a new tab at the end of the Workarea
  • Mode III: Using API BTTUtil.workarea.addTab with an index parameter and a tab attribute parameter, a new tab is added at the position P2 in the current page, and the ID of the new tab is returned.
    Table 3. Mode III
    Input Output
    P1(index), P2(tab attributes) A new tab is added at the position P2 in the current page, and the ID of the new tab is returned.
    You can refer to the following screen capture:
    Screen capture showing new tab creation
  • Mode IV: Using API BTTUtil.workarea.addTab with a tab ID parameter, an index parameter and a tab attribute parameter, a new tab is added before or after the corresponding tab. And the ID of the tab is returned.
    Table 4. Mode IV
    Input Output
    P1(tab ID), P2(index), P3(tab attributes) A new tab is added before or after the corresponding tab. And the ID of the tab is returned.
    Screen capture showing new tab creation