How to use the simple-dropzone.SimpleDropzone function in simple-dropzone

To help you get started, we’ve selected a few simple-dropzone examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github donmccurdy / three-gltf-viewer / src / app.js View on Github external
createDropzone () {
    const dropCtrl = new SimpleDropzone(this.dropEl, this.inputEl);
    dropCtrl.on('drop', ({files}) => this.load(files));
    dropCtrl.on('dropstart', () => this.showSpinner());
    dropCtrl.on('droperror', () => this.hideSpinner());
  }

simple-dropzone

A simple multi-file drag-and-drop input using vanilla JavaScript.

MIT
Latest version published 2 years ago

Package Health Score

55 / 100
Full package analysis

Popular simple-dropzone functions