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.
Feedback
Para reportar algum problema ou sugerir alterações, use nosso formulário de melhorias ou, se preferir, abra uma issue no nosso Github.