@api-components/http-method-label
v3.1.5
Published
A HTTP method name display label for lists
Downloads
1,871
Readme
DEPRECATED
This component is being deprecated. The code base has been moved to amf-components module. This module will be archived when PR 1 is merged.
An HTTP method name display label for lists.
<http-method-label method="get"></http-method-label>
<http-method-label method="POST"></http-method-label>
<http-method-label method="Put"></http-method-label>
<http-method-label method="delete"></http-method-label>
<http-method-label method="patch"></http-method-label>
Usage
Installation
npm install @api-components/http-method-label --save
In an html file
<html>
<head>
<script type="module">
import '@api-components/http-method-label/http-method-label.js';
</script>
</head>
<body>
<http-method-label method="get"></http-method-label>
</body>
</html>
In a web component element
import { LitElement, html, css } from 'lit-element';
import '@api-components/http-method-label/http-method-label.js';
class SampleElement extends PolymerElement {
static get template() {
return html`
<http-method-label method="get"></http-method-label>
`;
}
}
customElements.define('sample-element', SampleElement);
Development
git clone https://github.com/advanced-rest-client/http-method-label
cd http-method-label
npm install
Running the demo locally
npm start
Running the tests
npm test