@advanced-rest-client/web-url-inputdeprecated

An element to render a dialog to enter an URL with auto hints

Usage no npm install needed!

<script type="module">
  import advancedRestClientWebUrlInput from 'https://cdn.skypack.dev/@advanced-rest-client/web-url-input';
</script>

README

Published on NPM

Build Status

Published on webcomponents.org

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