0.2.7 • Published 2 years ago

@scoped-elements/dropzone v0.2.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

\@scoped-elements/dropzone

Re-export of the Dropzone.js package in a custom element to be used with @open-wc/scoped-elements.

Installation

npm i @scoped-elements/dropzone

Usage

As an sub element in your own custom element

import { DropzoneElement } from '@scoped-elements/dropzone';
import { ScopedElementsMixin } from '@open-wc/scoped-elements';

export class CustomElement extends ScopedElementsMixin(LitElement) {
  static get scopedElements() {
    return {
      'drop-zone': DropzoneElement,
    };
  }

  render() {
    return html` <drop-zone url="https://my-upload-url.com"></drop-zone> `;
  }
}

As a globally defined custom element

import { DropzoneElement } from '@scoped-elements/material-web';

customElements.define('drop-zone', DropzoneElement);

Documentation for the elements

As this package is just a re-export, you can find the documentation for Dropzone.js here: https://www.dropzone.dev/js/.

0.2.7

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.6

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.0

2 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago