@advanced-rest-client/history-list-mixindeprecated

A mixin to be applied to a list that renders history requests.

Usage no npm install needed!

<script type="module">
  import advancedRestClientHistoryListMixin from 'https://cdn.skypack.dev/@advanced-rest-client/history-list-mixin';
</script>

README

Published on NPM

Build Status

Published on webcomponents.org

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