This package has been deprecated

Author message:

This component is deprecated

@advanced-rest-client/variables-consumer-mixin

3.0.6 • Public • Published

Published on NPM

Build Status

Published on webcomponents.org

variables-consumer-mixin

A mixin function to be used by elements that consumes Advanced REST Client variables.

The mixin works with:

  • @advanced-rest-client/arc-models/variables-model.js (or compatible events API)
  • @advanced-rest-client/variables-manager (or compatible events API)

By default the component using the mixin queries for current environment (the manager) and then for variables list in the environment (data model). If this operation fails (for example model or manager is still being initialized) then it listens for manager events to refresh its state.

Usage

Installation

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

In a LitElement template

import { LitElement, html } from 'lit-element';
import { VariablesConsumerMixin } from '@advanced-rest-client/variables-consumer-mixin/variables-consumer-mixin.js';

class SampleElement extends VariablesConsumerMixin(LitElement) {
  ...
}
customElements.define('sample-element', SampleElement);

Development

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

Running the tests

npm test

Package Sidebar

Install

npm i @advanced-rest-client/variables-consumer-mixin

Weekly Downloads

1

Version

3.0.6

License

Apache-2.0

Unpacked Size

29.5 kB

Total Files

7

Last publish

Collaborators

  • carowright
  • jarrodek
  • twoplustwoone
  • lbauret