This package has been deprecated

Author message:

This component is deprecated

@advanced-rest-client/saved-list-mixin
TypeScript icon, indicating that this package has built-in type declarations

3.0.3 • Public • Published

Published on NPM

Build Status

Published on webcomponents.org

saved-list-mixin

A mixin to be applied to a list that renders saved requests in Advanced REST Client.

Usage

Installation

npm install --save @advanced-rest-client/saved-list-mixin

In a LitElement

import { LitElement, html } from 'lit-element';
import { SavedListMixin } from '@advanced-rest-client/saved-list-mixin/saved-list-mixin.js';

class SampleElement extends SavedListMixin(LitElement) {
  render() {
    return html`
    ${this.modelTemplate}
    ${(this.requests || []).map((request) => html`...`)}
    `;
  }
}
customElements.define('sample-element', SampleElement);

Inject modelTemplate into the shadow DOM to initialize data models.

Development

git clone https://github.com/advanced-rest-client/saved-list-mixin
cd saved-list-mixin
npm install

Running the tests

npm test

API components

This components is a part of API components ecosystem

Readme

Keywords

Package Sidebar

Install

npm i @advanced-rest-client/saved-list-mixin

Weekly Downloads

1

Version

3.0.3

License

Apache-2.0

Unpacked Size

18.9 kB

Total Files

5

Last publish

Collaborators

  • carowright
  • jarrodek
  • twoplustwoone
  • lbauret