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