Skip to main content

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

Defined in

webgi/src/extras/dropzone.ts:13


el

get el(): undefined | HTMLElement

Returns

undefined | HTMLElement

Defined in

webgi/src/extras/dropzone.ts:16

Constructors

constructor

new Dropzone(el?, inputEl?, listeners?)

Parameters

NameType
el?HTMLElement
inputEl?HTMLInputElement
listeners?Partial<Record<DropEventType, ListenerCallback>>

Defined in

webgi/src/extras/dropzone.ts:23

Methods

on

on(type, callback): Dropzone

Parameters

NameType
typeDropEventType
callbackListenerCallback

Returns

Dropzone

Defined in

webgi/src/extras/dropzone.ts:44


destroy

destroy(): void

Destroys the instance.

Returns

void

Defined in

webgi/src/extras/dropzone.ts:58