README
saved-list-mixin
A mixin to be applied to a list that renders saved requests in Advanced REST Client.
Usage
Installation
npm install --save @advanced-rest-client/saved-list-mixin
In a LitElement
import { LitElement, html } from 'lit-element';
import { SavedListMixin } from '@advanced-rest-client/saved-list-mixin/saved-list-mixin.js';
class SampleElement extends SavedListMixin(LitElement) {
render() {
return html`
${this.modelTemplate}
${(this.requests || []).map((request) => html`...`)}
`;
}
}
customElements.define('sample-element', SampleElement);
Inject modelTemplate
into the shadow DOM to initialize data models.
Development
git clone https://github.com/advanced-rest-client/saved-list-mixin
cd saved-list-mixin
npm install
Running the tests
npm test
API components
This components is a part of API components ecosystem