File input element
Optional
config: FileUploadConfig = {}File Upload config
Protected
_Private
$announcementsPrivate
$buttonPrivate
$inputPrivate
$statusPrivate
enteredPrivate
i18nPrivate
idStatic
Constant
defaultsFile upload default config
Static
elementStatic
moduleName for the component used when initialising using data-module attributes.
Static
Constant
schemaFile upload config schema
Protected
$rootProtected
Returns the root element of the component
Protected
configProtected
Returns the root element of the component
Internal
Virtual
configOverride
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.
Optional
param: Partial<FileUploadConfig>Configuration object
return - Configuration object
Private
findPrivate
hidePrivate
Hides the drop zone visually
Private
observePrivate
Create a mutation observer to check if the input's attributes altered.
Private
onPrivate
Check if the value of the underlying input has changed
Private
onPrivate
When the button is clicked, emulate clicking the actual, hidden file input
Private
onPrivate
Handles user dropping on the component
The dragenter
event
Private
showPrivate
Show the drop zone visually
Private
updatePrivate
Synchronise the disabled
state between the input and replacement button.
Private
updatePrivate
Updates the visibility of the dropzone as users enters the various elements on the page
The dragenter
event
Static
check
File upload component