Tab: Conversion from ASPX to HTML and TypeScript
The following tables will help you to convert tab-related ASPX elements to HTML or TypeScript elements.
PXTab
The following table shows the correspondence between the PXTab ASPX control and HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
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. |
PXTabItem
The following table shows the correspondence between the PXTabItem ASPX control and HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
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.
|
Obsolete ASPX Controls and Properties
The following table lists obsolete ASPX elements that are related to tabs. You do not need to replace these ASPX elements with any HTML or TypeScript elements.
ASPX Control | Properties |
---|---|
AutoSize
|
All properties |
PXTab
|
|
PXTabItem
|
|