File input element
Optionalconfig: FileUploadConfig = {}File Upload config
Protected_Private$announcementsPrivate$buttonPrivate$inputPrivate$statusPrivateenteredPrivatei18nPrivateidStatic ConstantdefaultsFile upload default config
StaticelementStaticmoduleName for the component used when initialising using data-module attributes.
Static ConstantschemaFile upload config schema
Protected$rootProtectedReturns the root element of the component
ProtectedconfigProtectedReturns the root element of the component
Internal VirtualconfigOverride
Function which defines configuration overrides to prioritize properties from the root element's dataset.
It should take a subset of configuration as input and return a new configuration object with properties that should be overridden based on the root element's dataset. A Symbol is used for indexing to prevent conflicts.
Optionalparam: Partial<FileUploadConfig>Configuration object
return - Configuration object
PrivatefindPrivatehidePrivateHides the drop zone visually
PrivateobservePrivateCreate a mutation observer to check if the input's attributes altered.
PrivateonPrivateCheck if the value of the underlying input has changed
PrivateonPrivateWhen the button is clicked, emulate clicking the actual, hidden file input
PrivateonPrivateHandles user dropping on the component
The dragenter event
PrivateshowPrivateShow the drop zone visually
PrivateupdatePrivateSynchronise the disabled state between the input and replacement button.
PrivateupdatePrivateUpdates the visibility of the dropzone as users enters the various elements on the page
The dragenter event
Staticcheck
File upload component