0.2.7 • Published 8 months ago

@scoped-elements/dropzone v0.2.7

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months 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

8 months ago

0.2.1

12 months ago

0.2.0

1 year ago

0.2.6

12 months ago

0.2.3

12 months ago

0.2.2

12 months ago

0.2.5

12 months ago

0.2.4

12 months ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.0

1 year ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago