3.0.0 • Published 5 years ago

@api-components/api-candidates-dialog v3.0.0

Weekly downloads
9
License
Apache-2.0
Repository
github
Last release
5 years ago

Published on NPM

Build Status

Published on webcomponents.org

api-candidates-dialog

A dialog to select API main file from API zip package

<api-candidates-dialog id="dialog" candidates='["api.raml", "api.yaml", "api.json"]'></api-candidates-dialog>
<button onclick="dialog.opened = true">Open</button>

API components

This components is a part of API components ecosystem

Usage

Installation

npm install --save @api-components/api-candidates-dialog

In an html file

<html>
  <head>
    <script type="module">
      import '@api-components/api-candidates-dialog/api-candidates-dialog.js';
    </script>
  </head>
  <body>
    <api-candidates-dialog></api-candidates-dialog>
  </body>
</html>

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import '@api-components/api-candidates-dialog/api-candidates-dialog.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
    <api-candidates-dialog></api-candidates-dialog>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/api-candidates-dialog
cd api-candidates-dialog
npm install

Running the demo locally

npm start

Running the tests

npm test