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