Skip to content

Interface: AnyDropUIOptions ​

Defined in: ui/src/options.ts:120

The DOM strings of a UI instance. Every user-visible text is one of these (translatable).

Extends ​

Properties ​

PropertyTypeDescriptionInherited fromDefined in
addRemoveLinksbooleanAdd a "Remove file" / "Cancel upload" link to each preview. Default false.-ui/src/options.ts:130
capturestring | nullPassed to the file input ('environment', 'user', ...).-ui/src/options.ts:134
clickable| boolean | ElementRef | ElementRef[]true = the element itself, false = none, or a selector, element or list of them.-ui/src/options.ts:122
createImageThumbnailsbooleanCreate thumbnails for images. Default true.-ui/src/options.ts:136
dictAnnounceAddedstring.AnyDropDict.dictAnnounceAddedui/src/options.ts:97
dictAnnounceCompletestringScreen-reader message when all uploads finished. Default Upload complete.AnyDropDict.dictAnnounceCompleteui/src/options.ts:99
dictAnnounceErrorsstring.AnyDropDict.dictAnnounceErrorsui/src/options.ts:101
dictAnnouncePausedstringScreen-reader message. Default Upload paused.AnyDropDict.dictAnnouncePausedui/src/options.ts:115
dictAnnounceProgressstring.AnyDropDict.dictAnnounceProgressui/src/options.ts:103
dictAnnounceResumedstringScreen-reader message. Default Upload resumed.AnyDropDict.dictAnnounceResumedui/src/options.ts:117
dictCancelUploadstringLink text while uploading (with addRemoveLinks). Default Cancel upload.AnyDropDict.dictCancelUploadui/src/options.ts:25
dictCancelUploadConfirmationstringQuestion before canceling an upload.AnyDropDict.dictCancelUploadConfirmationui/src/options.ts:27
dictClearstringToolbar button that removes the finished files. Default Clear.AnyDropDict.dictClearui/src/options.ts:47
dictCollapsestringAccessible name of the folder toggle when open. Default Collapse folder.AnyDropDict.dictCollapseui/src/options.ts:57
dictConnectionRestoredstringAnnounced when the connection banner hides. Default Connection restored.AnyDropDict.dictConnectionRestoredui/src/options.ts:111
dictCopiedstringMessage after the error list was copied.AnyDropDict.dictCopiedui/src/options.ts:85
dictCopyErrorsstringError panel button. Default Copy list.AnyDropDict.dictCopyErrorsui/src/options.ts:83
dictCopyFailedstringMessage when copying failed.AnyDropDict.dictCopyFailedui/src/options.ts:87
dictDefaultMessagestringText of the drop zone. Default Drop files here to upload.AnyDropDict.dictDefaultMessageui/src/options.ts:17
dictDismissErrorsstringError panel button. Default Dismiss list.AnyDropDict.dictDismissErrorsui/src/options.ts:89
dictErrorsTitlestring.AnyDropDict.dictErrorsTitleui/src/options.ts:77
dictExpandstringAccessible name of the folder toggle when closed. Default Expand folder.AnyDropDict.dictExpandui/src/options.ts:55
dictExportCsvstringError panel button. Default Export CSV.AnyDropDict.dictExportCsvui/src/options.ts:81
dictExportJsonstringError panel button. Default Export JSON.AnyDropDict.dictExportJsonui/src/options.ts:79
dictFallbackMessagestringShown when the browser lacks drag and drop. Default Your browser does not support drag'n'drop file uploads.AnyDropDict.dictFallbackMessageui/src/options.ts:19
dictFallbackTextstringShown above the fallback form.AnyDropDict.dictFallbackTextui/src/options.ts:21
dictFallbackUploadstringButton of the fallback form. Default Upload!.AnyDropDict.dictFallbackUploadui/src/options.ts:23
dictFolderCountstring, .AnyDropDict.dictFolderCountui/src/options.ts:75
dictListLabelstringAccessible name of the list. Default Files to upload.AnyDropDict.dictListLabelui/src/options.ts:93
dictNoFolderSupportstringShown where folders cannot be selected (for example iOS).AnyDropDict.dictNoFolderSupportui/src/options.ts:33
dictOfflinestringBanner while the browser is offline.AnyDropDict.dictOfflineui/src/options.ts:105
dictPausestringRow button. Default Pause.AnyDropDict.dictPauseui/src/options.ts:49
dictPauseAllstringToolbar button. Default Pause all.AnyDropDict.dictPauseAllui/src/options.ts:41
dictReconnectingstringBanner while the server cannot be reached; counts down to the next attempt.AnyDropDict.dictReconnectingui/src/options.ts:107
dictRegionLabelstringAccessible name of the drop zone. Default File upload.AnyDropDict.dictRegionLabelui/src/options.ts:91
dictRemoveFilestringLink text of a finished file (with addRemoveLinks). Default Remove file.AnyDropDict.dictRemoveFileui/src/options.ts:29
dictRemoveFileConfirmationstring | nullQuestion asked before removing a finished file (null = no question).-ui/src/options.ts:132
dictResumestringRow button. Default Resume.AnyDropDict.dictResumeui/src/options.ts:51
dictResumeAllstringToolbar button. Default Resume all.AnyDropDict.dictResumeAllui/src/options.ts:43
dictRetrystringRow button. Default Retry.AnyDropDict.dictRetryui/src/options.ts:53
dictRetryFailedstringToolbar and error panel button. Default Retry failed.AnyDropDict.dictRetryFailedui/src/options.ts:45
dictRetryNowstringConnection banner button; calls reconnect(). Default Retry now.AnyDropDict.dictRetryNowui/src/options.ts:109
dictSelectFilesstringLabel of the file picker button. Default Select files.AnyDropDict.dictSelectFilesui/src/options.ts:35
dictSelectFolderstringLabel of the folder picker button. Default Select folder.AnyDropDict.dictSelectFolderui/src/options.ts:37
dictStatusAddedstringRow status. Default Added.AnyDropDict.dictStatusAddedui/src/options.ts:59
dictStatusCanceledstringRow status. Default Canceled.AnyDropDict.dictStatusCanceledui/src/options.ts:71
dictStatusErrorstringRow status. Default Failed.AnyDropDict.dictStatusErrorui/src/options.ts:69
dictStatusPausedstringRow status. Default Paused.AnyDropDict.dictStatusPausedui/src/options.ts:65
dictStatusQueuedstringRow status. Default Queued.AnyDropDict.dictStatusQueuedui/src/options.ts:61
dictStatusSuccessstringRow status. Default Done.AnyDropDict.dictStatusSuccessui/src/options.ts:67
dictStatusUploadingstringRow status. Default Uploading.AnyDropDict.dictStatusUploadingui/src/options.ts:63
dictSummarystring, , .AnyDropDict.dictSummaryui/src/options.ts:73
dictTapToUploadstringLabel of the file button on touch devices.AnyDropDict.dictTapToUploadui/src/options.ts:39
dictThumbnailErrorstringScreen-reader text and tooltip when a thumbnail cannot be loaded.AnyDropDict.dictThumbnailErrorui/src/options.ts:31
dictToolbarLabelstringAccessible name of the toolbar. Default Upload actions.AnyDropDict.dictToolbarLabelui/src/options.ts:95
dictWaitingForConnectionstringRow status of a file that waits for the connection (paused by the system, not by the user).AnyDropDict.dictWaitingForConnectionui/src/options.ts:113
dir"auto" | "ltr" | "rtl"Text direction. 'auto' follows the locale, or the page when there is none.-ui/src/options.ts:179
disablePreviewsbooleanRender no list, toolbar or error panel (render everything yourself). Default false.-ui/src/options.ts:156
enablePastebooleanAdd files pasted into the element. Off by default.-ui/src/options.ts:191
errorPanelbooleanShow the error panel when files failed. Default true.-ui/src/options.ts:187
errorRowHeightnumberHeight in px of a row of the error panel. Default 64.-ui/src/options.ts:183
fallback((this) => void) | nullRuns when the browser lacks the needed APIs, or with forceFallback. null = the default form.-ui/src/options.ts:160
folderView"flat" | "tree"'tree' (collapsible folders) or 'flat' (files with their full path). Default 'tree'.-ui/src/options.ts:165
forceFallbackbooleanShow the fallback form even when the browser supports everything. Default false.-ui/src/options.ts:158
hiddenInputContainerElementRefWhere the hidden file inputs are placed. Default 'body'.-ui/src/options.ts:128
iconsAnyDropIconsReplacement icons: a record of SVG strings by name, or a function. Trusted developer input. Default null.-ui/src/options.ts:175
init((this) => void) | nullCalled once at the end of the constructor.-ui/src/options.ts:162
layoutAnyDropLayout'list' or 'compact' (48px rows, no thumbnail). Default 'list'.-ui/src/options.ts:171
localestring | AnyDropLocale | nullA language pack (object or the code of a registered one). null = built-in English.-ui/src/options.ts:177
maxThumbnailFilesizenumberMiB; larger images get no thumbnail.-ui/src/options.ts:138
pickerButtonsbooleanThe "Select files" and "Select folder" buttons.-ui/src/options.ts:189
previewsContainerfalse | ElementRef | nullWhere the list, toolbar and error panel go. null = inside the element.-ui/src/options.ts:124
previewTemplatestringMarkup of one file preview (the data-ad-* hooks are filled in).-ui/src/options.ts:126
renderAnyDropRenderHooksCustom content for file rows, folder rows, the toolbar, the drop message and error rows. Default {}.-ui/src/options.ts:169
resizeHeightnumber | nullScale images down to this height in px before upload. Default null.-ui/src/options.ts:148
resizeMethod"crop" | "contain"'contain' or 'crop'. Default 'contain'.-ui/src/options.ts:154
resizeMimeTypestring | nullMIME type of the resized image (null = keep the type). Default null.-ui/src/options.ts:150
resizeQualitynumberEncoder quality from 0 to 1. Default 0.8.-ui/src/options.ts:152
resizeWidthnumber | nullScale images down to this width in px before upload. Default null.-ui/src/options.ts:146
rowActionsAnyDropRowActionsThe buttons of file and folder rows: built-in ids or your own { id, label, icon, when, onClick }.-ui/src/options.ts:173
rowHeightnumber | nullRow height in px of the virtualized list. null = the layout's default (list 56, compact 48).-ui/src/options.ts:167
theme"auto" | "light" | "dark"'auto' (follows prefers-color-scheme), 'light' or 'dark'. Default 'auto'.-ui/src/options.ts:193
themePresetstring | nullAdds the class ad-theme-<name> to the element and the panel. Default null.-ui/src/options.ts:181
thumbnailHeightnumber | nullThumbnail height in px, capped at 512. Default 120.-ui/src/options.ts:142
thumbnailMethod"crop" | "contain"'crop' or 'contain'. Default 'crop'.-ui/src/options.ts:144
thumbnailWidthnumber | nullThumbnail width in px, capped at 512. Default 120.-ui/src/options.ts:140
toolbarbooleanShow the toolbar. Default true.-ui/src/options.ts:185

Released under the MIT License.