Image Uploader: Conversion from ASPX to HTML and TypeScript
The following tables will help you to convert the ASPX elements that are related to the image uploader control to HTML or TypeScript elements.
PXImageUploader
The following table shows the correspondence between PXImageUploader 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 |
---|---|
PXImageUploader
|
Use the qp-image-uploader tag, as shown in the following
code.
Alternatively, you can use the field tag and specify qp-image-uploader as the value of the control-type attribute, as shown in the following code.
|
AllowNoImage
|
Use the allowNull property of the config attribute. |
AllowUpload
|
Use the readOnly property of the config attribute. |
DataField |
Use the state and value attributes of the qp-image-uploader tag, as shown in the following code.
Alternatively, you can use the name property of the field tag in HTML to specify the DAC field name, as shown in the following code.
|
DataMember
|
Use the viewName property of the config attribute. |
Height | Use the height attribute of the qp-image-uploader
tag.
|
Width | Use the width attribute of the qp-image-uploader
tag.
|
Obsolete ASPX Control and Property
The following table lists the obsolete ASPX element that is related to the image uploader control. You do not need to replace this ASPX element with any HTML or TypeScript element.
ASPX Control | Properties |
---|---|
PXImageUploader |
|