<nve-dropzone>
Properties
Comma-separated file extensions or MIME types accepted by the dropzone.
string
Text content from labels associated with the control.
string
The initial value used when the parent form resets.
string
This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. MDN
true The element has a disabled state and does not accept interaction.
false The element has an enabled state and accepts interaction.
The form associated with the control. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/form
Enables internal string values to update for internationalization.
Labels associated with the control. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/labels
Defines the maximum numeric value. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/max
number
null
File size limit in bytes.
number
Defines the maximum text length. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/maxlength
number
Defines the minimum numeric value. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/min
number
null
Defines the minimum text length. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/minlength
number
The name submitted with the control value as part of the form data. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/name
string
Disables constraint validation for this control. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/novalidate
true
false
Defines the pattern that text values must match. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern
string
Indicates whether the user can change the element's value while it remains visible and focusable. MDN
true The element has a readonly state: the user cannot change its value, but can still focus and copy it.
false The element allows editing and the user can change its value through interaction.
Requires a value before the parent form can submit. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required
true
false
Defines the value granularity for numeric inputs. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step
number
null
The control type.
string
The validation message shown when the control is invalid. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/validationMessage
string
The control validity state. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/validity
Files selected or dropped by the user. Assign files through the JavaScript property; the HTML value attribute is not supported.
File[]
The current value parsed as a number.
number
The current value serialized as a string.
string
Indicates whether the control participates in constraint validation. https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/willValidate
true
false
Events
Dispatched when the value has changed (files located in event.target)
Slots
Custom messaging that replaces the default upload instructions.
Custom icon that replaces the default upload icon.
Methods
checkValidity(): boolean
Checks whether the control satisfies its constraints. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity
reportValidity(): boolean
Reports whether the control satisfies its constraints. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity
reset(): void
Resets the control value to its initial value.
setCustomValidity(message: string): void
Sets a custom validation message. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity
CSS Properties
CSS Parts
The upload icon element