README
projects-list-consumer-mixin
A mixin with common methods for (legacy) projects list.
It is intended to be used in ARC components for saved requests list and for saved editor dialog.
API components
This components is a part of API components ecosystem
Usage
Installation
npm install --save @advanced-rest-client/projects-list-consumer-mixin
In a LitElement
import { LitElement, html } from 'lit-element';
import { ProjectsListConsumerMixin } from '@advanced-rest-client/projects-list-consumer-mixin/projects-list-consumer-mixin.js';
class SampleElement extends ProjectsListConsumerMixin(LitElement) {
render() {
return html`
${(this.projects || []).map((project) => html`...`)}
`;
}
}
customElements.define('sample-element', SampleElement);
Development
git clone https://github.com/advanced-rest-client/projects-list-consumer-mixin
cd projects-list-consumer-mixin
npm install
Running the tests
npm test