class FileUploadBuilder
extends
ComponentBuilder<APIFileUploadComponent>declare class FileUploadBuilder extends ComponentBuilder<APIFileUploadComponent>A builder that creates API-compatible JSON data for file uploads.
readonlydata : Partial<APIFileUploadComponent>
The API data associated with this component.
Inherited from: ComponentBuilder
Clears the id of this component, defaulting to a default incremented id.
Inherited from: ComponentBuilder
setCustomId(customId: string) : this
customId: string
Sets the custom id for this file upload.
setId(id: number) : this
id: number
Sets the id (not the custom id) for this component.
Inherited from: ComponentBuilder
setMaxValues(maxValues: number) : this
maxValues: number
Sets the maximum number of file uploads required.
setMinValues(minValues: number) : this
minValues: number
Sets the minimum number of file uploads required.
setRequired(required?: boolean) : this
required?: boolean
Sets whether this file upload is required.
toJSON() : APIFileUploadComponent
Serializes this builder to API-compatible JSON data.