Events and Handlers
The File Uploader Button component has the following events and handlers available for use:
Events
Event
|
Description
|
on Before Upload
|
Triggers before selected files are uploaded to the server.
|
on Upload Success
|
Triggers when file(s) upload succeeds.
|
on Upload Failed
|
Triggers if the upload of the file(s) results in an error.
|
On Visibility Change
|
Gets activated when the visibility state of the component is altered. You can use this event to define actions that need to take place when the component becomes visible or hidden.
|
Handlers
Handler
|
Description
|
Class List Logic
|
This logic involves modifying the CSS classes associated with the component dynamically.
|
Styles Logic
|
Allows you to change the styles of the component dynamically.
|
Visibility Logic
|
Allows controlling the visibility of the component based on certain conditions. You can use this event to show or hide the component depending on user actions or other factors. If the handler returns true , the component will be visible.
|
Target Directory Logic
|
Determines the path of the directory where the file(s) will be uploaded to.
|
File Name Logic
|
Determines the name of the file which it will be saved with. If the component is configured for multiple file upload, the handler is invoked for each selected file.
|
Button Label Logic
|
Determines the label of the file uploader button.
|
Upload Success Message Logic
|
Determines the text of the message presented to the user when file(s) upload is successful.
|
Upload Fail Message Logic
|
Determines the text of the message presented to the user when file(s) upload results in an error.
|
Upload Progress Message Logic
|
Determines the text of the message presented to the user when the upload is in progress.
|
Disabled State Logic
|
Determines if the component should be disabled. If the handler returns true , the component will be disabled.
|