README
web-url-input
An element to display a dialog to enter an URL with auto hints
Usage
Installation
npm install --save @advanced-rest-client/web-url-input
In an html file
<html>
<head>
<script type="module">
import './node_modules/@advanced-rest-client/web-url-input/web-url-input.js';
</script>
</head>
<body>
<web-url-input></web-url-input>
</body>
</html>
In a LitElement template
import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/web-url-input/web-url-input.js';
class SampleElement extends LitElement {
render() {
return html`
<web-url-input @open-web-url="${this._openHandler}"></web-url-input>
`;
}
_openHandler(e) {
console.log(e.detail.value);
}
}
customElements.define('sample-element', SampleElement);
Development
git clone https://github.com/advanced-rest-client/web-url-input
cd api-url-editor
npm install
Running the demo locally
npm start
Running the tests
npm test