Image picker
Last updated
Last updated
© 2024 UI Bakery
A field for image selection and upload. The field supports different versions for an image appearance (round, rectangular, and square), different fitting types, multi-file upload, and can perform required field and maximum size validation. You can choose a direct file upload or upload via a URL.
Method | Description |
---|---|
Triggers allow you to launch certain actions based on different events.
To activate the multi-file upload, check the Multiple toggle in the Settings - Validation section:
setValue(value: string/ file/ blob)
sets component value
setDisabled(disabled: boolean)
enables or disables the component
reset()
resets the component
focus()
sets focus on a component
validate()
validates the component
resetValidation()
resets the validation
On Init
Calls for an action on component initialization, e.g., page refresh
On Change
Calls for an action when a component changes its state