File dropzone
A drag-and-drop field for selecting and uploading files, supporting file type restrictions, multiple file selections, validation for required fields, and minimum or maximum size.
File Dropzone can also parse text-based files like JSON, CSV, and Excel spreadsheets. The maximum size for uploaded files can be configured.
Methods
setValue(value: string| file| Blob)
sets data for the component
setDisabled(disabled: boolean)
enables or disables the component
reset()
resets the component to the initial value
validate()
triggers component's validation
resetValidation()
resets the validation
focus()
sets focus on the component
setRequired (required: boolean)
sets component's required state
Triggers
Triggers allow you to launch certain actions based on different events.
On Init
Calls for an action on component initialization, e.g., page refresh
On Change
Calls for an action when a component's state changes
Last updated