@advanced-rest-client/cookie-details
v3.0.1
Published
A cookie detail view.
Downloads
24
Readme
An element to render cookie object details.
Usage
Installation
npm install --save @advanced-rest-client/cookie-details
In an html file
<html>
<head>
<script type="module">
import './node_modules/@advanced-rest-client/cookie-details/cookie-details.js';
</script>
</head>
<body>
<cookie-details></cookie-details>
</body>
</html>
In a LitElement
import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/cookie-details/cookie-details.js';
class SampleElement extends PolymerElement {
render() {
return html`
<cookie-details
.cookie="${this.cookie}"
@delete="${this._cookieDeleteHandler}"
@edit="${this._cookieEditHandler}"></cookie-details>
`;
}
_cookieDeleteHandler(e) {
...
}
_cookieEditHandler(e) {
...
}
}
customElements.define('sample-element', SampleElement);
Development
git clone https://github.com/advanced-rest-client/cookie-details
cd cookie-details
npm install
Running the demo locally
npm start
Running the tests
npm test
API components
This components is a part of API components ecosystem