@api-components/authorization-panel
TypeScript icon, indicating that this package has built-in type declarations

3.0.0-preview.1 • Public • Published

Published on NPM

Build Status

Published on webcomponents.org

<authorization-panel>

A set of elements that contains an UI to create different authorization headers like Basic, OAuth etc

<authorization-panel></authorization-panel>

API components

This components is a part of API components ecosystem

Usage

Installation

npm install --save @advanced-rest-client/authorization-panel

In an html file

<html>
  <head>
    <script type="module">
      import '@advanced-rest-client/authorization-panel/authorization-panel.js';
    </script>
  </head>
  <body>
    <authorization-panel></authorization-panel>
  </body>
</html>

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import '@advanced-rest-client/authorization-panel/authorization-panel.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
    <authorization-panel on-authorization-settings-changed="_authChanged"></authorization-panel>
    `;
  }

  _authChanged(e) {
    console.log(e.detail);
  }
}
customElements.define('sample-element', SampleElement);

Installation

git clone https://github.com/advanced-rest-client/authorization-panel
cd api-url-editor
npm install
npm install -g polymer-cli

Running the demo locally

polymer serve --npm
open http://127.0.0.1:<port>/demo/

Running the tests

polymer test --npm

Package Sidebar

Install

npm i @api-components/authorization-panel

Weekly Downloads

10

Version

3.0.0-preview.1

License

Apache-2.0

Unpacked Size

829 kB

Total Files

41

Last publish

Collaborators

  • carowright
  • jarrodek
  • twoplustwoone
  • lbauret