upload/src/upload.types.ts
Interface for custom messages/translations used in the Upload component. Custom messages will override default messages provided via localize. Use this feature if your app involves multiple instances of Upload using different messages per instance. If all Upload instances of your app share the same messages, you should provide/customize messages via localization instead.
Note that custom messages can be translated using the $localize tag function (cmp. example below).
protected customMessages: IUploadMessages = {
dropOrBrowseFiles: $localize`:Upload showcase|Custom instructional text for the upload component:Drop files here or click to browse files (custom).`,
};<talenra-upload ... [customMessages]="customMessages" />import { IUploadMessages } from '@talenra/components/upload';See UploadComponent
Properties |
| dropOrBrowseFiles |
dropOrBrowseFiles:
|
Type : string
|
|
Message displayed in the Upload component's drop area |
| fileAlreadyAdded |
fileAlreadyAdded:
|
Type : string
|
|
Message displayed when a selected file has already been added |
| fileSizeExceed |
fileSizeExceed:
|
Type : string
|
|
Message displayed when a selected file exceeds the maximum allowed size |
| fileTypeNotAccepted |
fileTypeNotAccepted:
|
Type : string
|
|
Message displayed when a selected file type is not accepted |
| maxFilesExceed |
maxFilesExceed:
|
Type : string
|
|
Message displayed when the maximum number of files is exceeded |
| overallSizeExceed |
overallSizeExceed:
|
Type : string
|
|
Message displayed when the total upload size exceeds the maximum allowed size |
| uploadError |
uploadError:
|
Type : string
|
|
Message displayed when an upload error occurs |