DropFile
Importβ
import { DropFile } from '@resultadosdigitais/tangram-components'
Propertiesβ
accept
β
acceptMessage
β
autoUpload
β
Type | bool |
---|---|
Default | false |
Descriptionβ
Indicates that the file should be uploaded right after user select a valid one.
browseButtonText
β
disabled
β
initialFile
β
invalidFileErrorMessage
β
Type | string | node |
---|---|
Default | INVALID_FILE_ERROR_MESSAGE |
Descriptionβ
Sets a custom invalid file error message.
onChange
β
Type | func |
---|---|
Default | () => {} |
Descriptionβ
Sets a custom listener to be executed when selected file changes.
onUpload
β
Type | func |
---|---|
Default | () => {} |
Descriptionβ
Sets a custom listener to be executed when file is valid and autoUpload has been set as true.
onUploadSuccess
β
onUploadError
β
progress
β
retryButtonText
β
selectionFileMessage
β
successMessage
β
uploadErrorMessage
β
uploadProcessingMessage
β
Type | string | node |
---|---|
Default | UPLOAD_PROCESSING_MESSAGE |
Descriptionβ
Sets a custom message to be shown during the upload processing.