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 IInput |
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:
- 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 IIInput |
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:
- 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
IIIInput |
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:
- 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 IVInput |
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. |