FileUpload
Signature
export declare class FileUpload extends BaseComponentBuilder<APIFileUploadComponent>Properties
0No properties.
Methods
6Methods
constructorConstructorconstructor(data?: Partial<APIFileUploadComponent>);setId(id: number): this;Sets the ID for the file upload.
Parameters
id- The ID for the file upload.
Returns
The current FileUpload instance.
setCustomId(customId: string): this;Sets the custom ID for the file upload.
Parameters
customId- The custom ID for the file upload.
Returns
The current FileUpload instance.
setMinValues(minValues: number): this;Sets the minimum number of items that must be uploaded.
Parameters
minValues- The minimum number of items that must be uploaded.
Returns
The current FileUpload instance.
setMaxValues(maxValues: number): this;Sets the maximum number of items that can be uploaded.
Parameters
maxValues- The maximum number of items that can be uploaded.
Returns
The current FileUpload instance.
setRequired(required: boolean): this;Sets whether the file upload is required.
Parameters
required- Whether the file upload is required.
Returns
The current FileUpload instance.