This package has been deprecated

Author message:

This component is deprecated

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

3.0.4 • Public • Published

Published on NPM

Build Status

Published on webcomponents.org

saved-request-editor

An applet to edit saved request data. The element appears in a context of a request editor or requests list.

It provides an UI to edit request metadata, but not HTTP request values.

The element dispatches bubbling save-request event that is handled by request-model which processes store request. This is preferred way of storing request data in ARC.

Example:

<saved-request-editor></saved-request-editor>

Usage

Installation

npm install --save @advanced-rest-client/saved-request-editor

In a LitElement

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

class SampleElement extends LitElement {
  render() {
    return html`
    <saved-request-editor
      .request="${this.request}"
      @cancel="${this._onCancel}"
      @save-request="${this._onSave}"></saved-request-editor>
    `;
  }

  _onCancel() {
    ...
  }

  _onSave() {
    ...
  }
}
customElements.define('sample-element', SampleElement);

Development

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

Running the tests

npm test

API components

This components is a part of API components ecosystem

/@advanced-rest-client/saved-request-editor/

    Package Sidebar

    Install

    npm i @advanced-rest-client/saved-request-editor

    Weekly Downloads

    1

    Version

    3.0.4

    License

    Apache-2.0

    Unpacked Size

    66.7 kB

    Total Files

    8

    Last publish

    Collaborators

    • carowright
    • jarrodek
    • twoplustwoone
    • lbauret