Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

arc-archive/projects-list-consumer-mixin

Repository files navigation

Published on NPM

Build Status

Published on webcomponents.org

projects-list-consumer-mixin

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.

API components

This components is a part of API components ecosystem

Usage

Installation

npm install --save @advanced-rest-client/projects-list-consumer-mixin

In a LitElement

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);

Development

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

Running the tests

npm test

About

Deprecated. Use `requests-list` instead.

Topics

Resources

Stars

Watchers

Forks