Negatory. Postpone Mission.
    Wondering what’s next for npm?Check out our public roadmap! »

    This package has been deprecated

    Author message:

    This component is deprecated

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

    3.0.1 • Public • Published

    Published on NPM

    Build Status

    Published on webcomponents.org

    requests-list-mixin

    A common function for element that handles lists of requests like history, saved or menu items for Advanced REST Client.

    The mixin is commonly used with requests-list-mixin/history-list-mixin and requests-list-mixin/saved-list-mixin.

    API components

    This components is a part of API components ecosystem

    Usage

    Installation

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

    In a LitElement

    import { LitElement, html } from 'lit-element';
    import { RequestsListMixin } from '@advanced-rest-client/requests-list-mixin/requests-list-mixin.js';
    import styles from '@advanced-rest-client/requests-list-mixin/requests-list-styles.js';
     
    class SampleElement extends RequestsListMixin(LitElement) {
      static get styles() {
        return styles;
      }
      
      render() {
        return html`
          ${this.modelTemplate}
          ${(this.requests || []).map((request) => html`...`)}return html`${this.modelTemplate}`;
        `;
      }
     
      connectedCallback() {
        if (super.connectedCallback) {
          super.connectedCallback();
        }
        this.type = 'history';
      }
    }
    customElements.define('sample-element', SampleElement);

    Development

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

    Running the tests

    npm test

    API components

    This components is a part of API components ecosystem

    Install

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

    DownloadsWeekly Downloads

    9

    Version

    3.0.1

    License

    Apache-2.0

    Unpacked Size

    28.9 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar