3.0.2 • Published 4 years ago

@advanced-rest-client/history-list-mixin v3.0.2

Weekly downloads
14
License
Apache-2.0
Repository
github
Last release
4 years ago

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