Tab: Reference Information
In the tables of this topic, you can find reference information about tabs.
Conversion from ASPX to HTML and TypeScript
The following tables will help you to convert tab-related ASPX elements to HTML or TypeScript elements.
ASPX | HTML or TypeScript |
---|---|
PXTab
|
Use the qp-tabbar control, as shown in the following code.
The control represents a tab bar in HTML.
|
ID
|
Use the id attribute of the qp-tabbar
control. The attribute specifies the ID of the tab bar, as shown in the following
example.
|
SelectedIndex
|
Use the active-tab-id attribute of the
qp-tabbar control. The attribute specifies the ID of the active
tab on the tab bar, as shown in the following
example.
|
TabIndex
|
Use the tabIndex property of the config attribute of the qp-tabbar control. |
ASPX | HTML or TypeScript |
---|---|
PXTabItem
|
Use the qp-tab control, as shown in the following code. The
control represents a tab in HTML.
|
LoadOnDemand
|
Use the load-on-demand attribute of the
qp-tab control. The attribute makes the system load the tab,
even if the tab is inactive. The following code uses this
attribute.
|
Text
|
Use the caption attribute of the qp-tab
control. The attribute specifies the title of the tab. The following code uses this
attribute.
|
Visible
|
Use the visible attribute of the qp-tab
control. The attribute specifies whether the tab appears on the form. The following
code uses this attribute.
|
VisibleExp
|
Use
if.bind='<condition>' for the qp-tab
tag, as shown in the following example.
|
ASPX Control | Properties |
---|---|
AutoSize
|
All properties |
PXTab
|
|
PXTabItem
|
|
qp-tabbar
The following table lists the properties of the qp-tabbar control, which represents a tab bar in HTML.
Property | Description |
---|---|
active-tab-id | Specifies the ID of the active tab on the tab bar, as shown in the following
example.
|
id | Specifies the ID of the tab bar, as shown in the following
example.
|
config | Includes the following properties:
|
qp-tab
The following table lists the properties of the qp-tab control, which represents a tab in HTML.
Property | Description |
---|---|
caption | Specifies the title of the tab. The following code uses this
attribute.
|
id | Specifies the ID of the tab, as shown in the following
example.
|
load-on-demand | Makes the system load the tab even if the tab is inactive. The following code
uses this attribute.
|
ref |
Specifies the ID of the tab that is defined in an extension, as shown in the following code.
The tab in an extension can be defined as the following code shows. In this
example, you need to use nested template tags. The first
template tag is a template for the whole extension, and the
second one is a template for the tab content.
|
tabbar-id | Specifies the ID of the tab bar to which the tab belongs. Generally, you do not need to specify this attribute. |
visible | Specifies whether the tab appears on the form. The following code uses this
attribute.
|