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.