Class: Dropzone
Extra-Helpers.Dropzone
Fork of: https://github.com/donmccurdy/simple-dropzone updated: Mar 2021
Changes: Convert to typescript. webkitRelativePath for file input select. Removed unzip and dependency(done in importer).
Watches an element for file drops, parses to create a filemap hierarchy, and emits the result.
Accessors
inputEl
• get
inputEl(): undefined
| HTMLInputElement
Returns
undefined
| HTMLInputElement
el
• get
el(): undefined
| HTMLElement
Returns
undefined
| HTMLElement
Constructors
constructor
• new Dropzone(el?
, inputEl?
, listeners?
)
Parameters
Name | Type |
---|---|
el? | HTMLElement |
inputEl? | HTMLInputElement |
listeners? | Partial <Record <DropEventType , ListenerCallback >> |
Methods
on
▸ on(type
, callback
): Dropzone
Parameters
Name | Type |
---|---|
type | DropEventType |
callback | ListenerCallback |
Returns
destroy
▸ destroy(): void
Destroys the instance.
Returns
void