<arc-file-drop-mixin>
A mixin with common function used to drag and drop file import in Advanced REST Client.
Usage
Installation
npm install --save @advanced-rest-client/arc-file-drop-mixin
In a LitElement
import { LitElement, html } from 'lit-element';
import { ArcFileDropMixin } from '@advanced-rest-client/arc-file-drop-mixin/arc-file-drop-mixin.js';
class SampleElement extends ArcFileDropMixin(LitElement) {
render() {
return html`
<h1>Drop file here</h1>
`;
}
}
customElements.define('sample-element', SampleElement);
Development
git clone https://github.com/advanced-rest-client/arc-file-drop-mixin
cd arc-file-drop-mixin
npm install
Running the tests
npm test
API components
This components is a part of API components ecosystem