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
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
addRemoveLinks | boolean | Add a "Remove file" / "Cancel upload" link to each preview. Default false. | - | ui/src/options.ts:130 |
capture | string | null | Passed 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 |
createImageThumbnails | boolean | Create thumbnails for images. Default true. | - | ui/src/options.ts:136 |
dictAnnounceAdded | string | . | AnyDropDict.dictAnnounceAdded | ui/src/options.ts:97 |
dictAnnounceComplete | string | Screen-reader message when all uploads finished. Default Upload complete. | AnyDropDict.dictAnnounceComplete | ui/src/options.ts:99 |
dictAnnounceErrors | string | . | AnyDropDict.dictAnnounceErrors | ui/src/options.ts:101 |
dictAnnouncePaused | string | Screen-reader message. Default Upload paused. | AnyDropDict.dictAnnouncePaused | ui/src/options.ts:115 |
dictAnnounceProgress | string | . | AnyDropDict.dictAnnounceProgress | ui/src/options.ts:103 |
dictAnnounceResumed | string | Screen-reader message. Default Upload resumed. | AnyDropDict.dictAnnounceResumed | ui/src/options.ts:117 |
dictCancelUpload | string | Link text while uploading (with addRemoveLinks). Default Cancel upload. | AnyDropDict.dictCancelUpload | ui/src/options.ts:25 |
dictCancelUploadConfirmation | string | Question before canceling an upload. | AnyDropDict.dictCancelUploadConfirmation | ui/src/options.ts:27 |
dictClear | string | Toolbar button that removes the finished files. Default Clear. | AnyDropDict.dictClear | ui/src/options.ts:47 |
dictCollapse | string | Accessible name of the folder toggle when open. Default Collapse folder. | AnyDropDict.dictCollapse | ui/src/options.ts:57 |
dictConnectionRestored | string | Announced when the connection banner hides. Default Connection restored. | AnyDropDict.dictConnectionRestored | ui/src/options.ts:111 |
dictCopied | string | Message after the error list was copied. | AnyDropDict.dictCopied | ui/src/options.ts:85 |
dictCopyErrors | string | Error panel button. Default Copy list. | AnyDropDict.dictCopyErrors | ui/src/options.ts:83 |
dictCopyFailed | string | Message when copying failed. | AnyDropDict.dictCopyFailed | ui/src/options.ts:87 |
dictDefaultMessage | string | Text of the drop zone. Default Drop files here to upload. | AnyDropDict.dictDefaultMessage | ui/src/options.ts:17 |
dictDismissErrors | string | Error panel button. Default Dismiss list. | AnyDropDict.dictDismissErrors | ui/src/options.ts:89 |
dictErrorsTitle | string | . | AnyDropDict.dictErrorsTitle | ui/src/options.ts:77 |
dictExpand | string | Accessible name of the folder toggle when closed. Default Expand folder. | AnyDropDict.dictExpand | ui/src/options.ts:55 |
dictExportCsv | string | Error panel button. Default Export CSV. | AnyDropDict.dictExportCsv | ui/src/options.ts:81 |
dictExportJson | string | Error panel button. Default Export JSON. | AnyDropDict.dictExportJson | ui/src/options.ts:79 |
dictFallbackMessage | string | Shown when the browser lacks drag and drop. Default Your browser does not support drag'n'drop file uploads. | AnyDropDict.dictFallbackMessage | ui/src/options.ts:19 |
dictFallbackText | string | Shown above the fallback form. | AnyDropDict.dictFallbackText | ui/src/options.ts:21 |
dictFallbackUpload | string | Button of the fallback form. Default Upload!. | AnyDropDict.dictFallbackUpload | ui/src/options.ts:23 |
dictFolderCount | string | , . | AnyDropDict.dictFolderCount | ui/src/options.ts:75 |
dictListLabel | string | Accessible name of the list. Default Files to upload. | AnyDropDict.dictListLabel | ui/src/options.ts:93 |
dictNoFolderSupport | string | Shown where folders cannot be selected (for example iOS). | AnyDropDict.dictNoFolderSupport | ui/src/options.ts:33 |
dictOffline | string | Banner while the browser is offline. | AnyDropDict.dictOffline | ui/src/options.ts:105 |
dictPause | string | Row button. Default Pause. | AnyDropDict.dictPause | ui/src/options.ts:49 |
dictPauseAll | string | Toolbar button. Default Pause all. | AnyDropDict.dictPauseAll | ui/src/options.ts:41 |
dictReconnecting | string | Banner while the server cannot be reached; counts down to the next attempt. | AnyDropDict.dictReconnecting | ui/src/options.ts:107 |
dictRegionLabel | string | Accessible name of the drop zone. Default File upload. | AnyDropDict.dictRegionLabel | ui/src/options.ts:91 |
dictRemoveFile | string | Link text of a finished file (with addRemoveLinks). Default Remove file. | AnyDropDict.dictRemoveFile | ui/src/options.ts:29 |
dictRemoveFileConfirmation | string | null | Question asked before removing a finished file (null = no question). | - | ui/src/options.ts:132 |
dictResume | string | Row button. Default Resume. | AnyDropDict.dictResume | ui/src/options.ts:51 |
dictResumeAll | string | Toolbar button. Default Resume all. | AnyDropDict.dictResumeAll | ui/src/options.ts:43 |
dictRetry | string | Row button. Default Retry. | AnyDropDict.dictRetry | ui/src/options.ts:53 |
dictRetryFailed | string | Toolbar and error panel button. Default Retry failed. | AnyDropDict.dictRetryFailed | ui/src/options.ts:45 |
dictRetryNow | string | Connection banner button; calls reconnect(). Default Retry now. | AnyDropDict.dictRetryNow | ui/src/options.ts:109 |
dictSelectFiles | string | Label of the file picker button. Default Select files. | AnyDropDict.dictSelectFiles | ui/src/options.ts:35 |
dictSelectFolder | string | Label of the folder picker button. Default Select folder. | AnyDropDict.dictSelectFolder | ui/src/options.ts:37 |
dictStatusAdded | string | Row status. Default Added. | AnyDropDict.dictStatusAdded | ui/src/options.ts:59 |
dictStatusCanceled | string | Row status. Default Canceled. | AnyDropDict.dictStatusCanceled | ui/src/options.ts:71 |
dictStatusError | string | Row status. Default Failed. | AnyDropDict.dictStatusError | ui/src/options.ts:69 |
dictStatusPaused | string | Row status. Default Paused. | AnyDropDict.dictStatusPaused | ui/src/options.ts:65 |
dictStatusQueued | string | Row status. Default Queued. | AnyDropDict.dictStatusQueued | ui/src/options.ts:61 |
dictStatusSuccess | string | Row status. Default Done. | AnyDropDict.dictStatusSuccess | ui/src/options.ts:67 |
dictStatusUploading | string | Row status. Default Uploading. | AnyDropDict.dictStatusUploading | ui/src/options.ts:63 |
dictSummary | string | , , . | AnyDropDict.dictSummary | ui/src/options.ts:73 |
dictTapToUpload | string | Label of the file button on touch devices. | AnyDropDict.dictTapToUpload | ui/src/options.ts:39 |
dictThumbnailError | string | Screen-reader text and tooltip when a thumbnail cannot be loaded. | AnyDropDict.dictThumbnailError | ui/src/options.ts:31 |
dictToolbarLabel | string | Accessible name of the toolbar. Default Upload actions. | AnyDropDict.dictToolbarLabel | ui/src/options.ts:95 |
dictWaitingForConnection | string | Row status of a file that waits for the connection (paused by the system, not by the user). | AnyDropDict.dictWaitingForConnection | ui/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 |
disablePreviews | boolean | Render no list, toolbar or error panel (render everything yourself). Default false. | - | ui/src/options.ts:156 |
enablePaste | boolean | Add files pasted into the element. Off by default. | - | ui/src/options.ts:191 |
errorPanel | boolean | Show the error panel when files failed. Default true. | - | ui/src/options.ts:187 |
errorRowHeight | number | Height in px of a row of the error panel. Default 64. | - | ui/src/options.ts:183 |
fallback | ((this) => void) | null | Runs 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 |
forceFallback | boolean | Show the fallback form even when the browser supports everything. Default false. | - | ui/src/options.ts:158 |
hiddenInputContainer | ElementRef | Where the hidden file inputs are placed. Default 'body'. | - | ui/src/options.ts:128 |
icons | AnyDropIcons | Replacement icons: a record of SVG strings by name, or a function. Trusted developer input. Default null. | - | ui/src/options.ts:175 |
init | ((this) => void) | null | Called once at the end of the constructor. | - | ui/src/options.ts:162 |
layout | AnyDropLayout | 'list' or 'compact' (48px rows, no thumbnail). Default 'list'. | - | ui/src/options.ts:171 |
locale | string | AnyDropLocale | null | A language pack (object or the code of a registered one). null = built-in English. | - | ui/src/options.ts:177 |
maxThumbnailFilesize | number | MiB; larger images get no thumbnail. | - | ui/src/options.ts:138 |
pickerButtons | boolean | The "Select files" and "Select folder" buttons. | - | ui/src/options.ts:189 |
previewsContainer | false | ElementRef | null | Where the list, toolbar and error panel go. null = inside the element. | - | ui/src/options.ts:124 |
previewTemplate | string | Markup of one file preview (the data-ad-* hooks are filled in). | - | ui/src/options.ts:126 |
render | AnyDropRenderHooks | Custom content for file rows, folder rows, the toolbar, the drop message and error rows. Default {}. | - | ui/src/options.ts:169 |
resizeHeight | number | null | Scale 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 |
resizeMimeType | string | null | MIME type of the resized image (null = keep the type). Default null. | - | ui/src/options.ts:150 |
resizeQuality | number | Encoder quality from 0 to 1. Default 0.8. | - | ui/src/options.ts:152 |
resizeWidth | number | null | Scale images down to this width in px before upload. Default null. | - | ui/src/options.ts:146 |
rowActions | AnyDropRowActions | The buttons of file and folder rows: built-in ids or your own { id, label, icon, when, onClick }. | - | ui/src/options.ts:173 |
rowHeight | number | null | Row 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 |
themePreset | string | null | Adds the class ad-theme-<name> to the element and the panel. Default null. | - | ui/src/options.ts:181 |
thumbnailHeight | number | null | Thumbnail 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 |
thumbnailWidth | number | null | Thumbnail width in px, capped at 512. Default 120. | - | ui/src/options.ts:140 |
toolbar | boolean | Show the toolbar. Default true. | - | ui/src/options.ts:185 |