Time Span: Conversion from ASPX to HTML and TypeScript
The following tables will help you to convert the ASPX elements that are related to the time span control to HTML or TypeScript elements.
PXTimeSpan
The following table shows the correspondence between the PXTimeSpan element and the 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 |
---|---|
PXTimeSpan
|
Replace it with field (whose control type is automatically defined as a time span from the backend code). In rare cases, you should replace it explicitly with the qp-time-span control. |
AllowEdit
|
Use the allowEdit property of the config attribute of the qp-time-span control. If the property is set to true, a user can enter values that are not available in the combo box.
|
AllowNull
|
Use the allowNull property of the config
attribute of the qp-time-span control. If the property is set to
true, an empty value is allowed for the combo box. By default, the
allowNull value is
true.
|
Enabled
|
Use the enabled property of the config
attribute of the qp-time-span control. If the property is false,
a user cannot select a value in the
control.
|
Obsolete ASPX Controls and Properties
The following table lists the obsolete ASPX elements that are related to the time span control. You do not need to replace these ASPX elements with any HTML or TypeScript elements.
ASPX Control | Properties |
---|---|
PXTimeSpan |
|