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.
This components is a part of API components ecosystem
npm install --save @advanced-rest-client/projects-list-consumer-mixin
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);
git clone https://github.com/advanced-rest-client/projects-list-consumer-mixin
cd projects-list-consumer-mixin
npm install
npm test