This package has been deprecated

Author message:

This component is deprecated

@advanced-rest-client/url-input-editor
TypeScript icon, indicating that this package has built-in type declarations

3.2.1 • Public • Published

Published on NPM

Build Status

Published on webcomponents.org

<url-input-editor>

A HTTP request URL editor for a HTTP request editor.

Usage

Installation

npm install --save @advanced-rest-client/url-input-editor

In a LitElement

import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/url-input-editor/url-input-editor.js';

class SampleElement extends LitElement {
  render() {
    return html`
    <url-input-editor
      .value="${this.url}"
      @value-changed="${this._valueChanged}"
      @url-history-query="${this._queryUrlHistory}"></url-input-editor>
    `;
  }

  _valueChanged(e) {
    this.url = e.detail.value;
  }

  _queryUrlHistory(e) {
    e.preventDefault();
    const query = e.detail.q;
    e.detail.value = Promise.resolve([{
      url: '... some value'
    }]);
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/url-input-editor
cd url-input-editor
npm install

Running the demo locally

npm start

Running the tests

npm test

Package Sidebar

Install

npm i @advanced-rest-client/url-input-editor

Weekly Downloads

2

Version

3.2.1

License

Apache-2.0

Unpacked Size

111 kB

Total Files

21

Last publish

Collaborators

  • carowright
  • jarrodek
  • twoplustwoone
  • lbauret