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

3.0.2 • Public • Published

Published on NPM

Build Status

Published on webcomponents.org

An element to edit cookie details.

The cookie data model is consistent with Electron's cookie object.

Usage

Installation

npm install --save @advanced-rest-client/cookie-editor

In an html file

<html>
  <head>
    <script type="module">
      import './node_modules/@advanced-rest-client/cookie-editor/cookie-editor.js';
    </script>
  </head>
  <body>
    <cookie-editor></cookie-editor>
  </body>
</html>

In a LitElement

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

class SampleElement extends PolymerElement {
  render() {
    return html`
    <cookie-editor
      .cookie="${this.cookie}"
      @save="${this._cookieSaveHandler}"
      @cancel="${this._cookieCancelHandler}"></cookie-editor>
    `;
  }

  _cookieSaveHandler(e) {
    ...
  }

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

Development

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

Running the demo locally

npm start

Running the tests

npm test

API components

This components is a part of API components ecosystem

Package Sidebar

Install

npm i @advanced-rest-client/cookie-editor

Weekly Downloads

3

Version

3.0.2

License

Apache-2.0

Unpacked Size

50.2 kB

Total Files

6

Last publish

Collaborators

  • carowright
  • jarrodek
  • twoplustwoone
  • lbauret