This package has been deprecated

    Author message:

    This component is deprecated

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

    1.0.2 • Public • Published

    Published on NPM

    Build Status

    Published on webcomponents.org

    client-certificates-consumer-mixin

    A common function for element that handles lists of client certificates. Primarily made for Advanced REST Client.

    The mixin does not offer models to work with as the storing implementation may be different for different platforms. Use @advanced-rest-client/arc-models/client-certificate-model.js as a default store.

    See the model definition to learn about events API for certificates to implement own store. Required events are:

    • client-certificate-insert
    • client-certificate-list
    • client-certificate-delete

    Other elements may require additional event:

    • client-certificate-get

    Usage

    Installation

    npm install --save @advanced-rest-client/client-certificates-consumer-mixin
    

    In a LitElement

    import { LitElement, html } from 'lit-element';
    import { ClientCertificatesConsumerMixin } from '@advanced-rest-client/client-certificates-consumer-mixin/client-certificates-consumer-mixin.js';
     
    class SampleElement extends ClientCertificatesConsumerMixin(LitElement) {
      render() {
        return html`
          ${(this.items || []).map((item) => html`...`)};
        `;
      }
    }
    customElements.define('sample-element', SampleElement);

    The element queries certificates storage for the list of certificates when initialized. After that you need to call refresh() function manually.

    Development

    git clone https://github.com/advanced-rest-client/client-certificates-consumer-mixin
    cd client-certificates-consumer-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/client-certificates-consumer-mixin

    DownloadsWeekly Downloads

    18

    Version

    1.0.2

    License

    Apache-2.0

    Unpacked Size

    23.4 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar