headers-list-view

WebJar for headers-list-view

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

org.webjars.bowergithub.advanced-rest-client
ArtifactId

ArtifactId

headers-list-view
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

headers-list-view
WebJar for headers-list-view
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/advanced-rest-client/headers-list-view

Download headers-list-view

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.advanced-rest-client/headers-list-view/ -->
<dependency>
    <groupId>org.webjars.bowergithub.advanced-rest-client</groupId>
    <artifactId>headers-list-view</artifactId>
    <version>2.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.advanced-rest-client/headers-list-view/
implementation 'org.webjars.bowergithub.advanced-rest-client:headers-list-view:2.0.1'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.advanced-rest-client/headers-list-view/
implementation ("org.webjars.bowergithub.advanced-rest-client:headers-list-view:2.0.1")
'org.webjars.bowergithub.advanced-rest-client:headers-list-view:jar:2.0.1'
<dependency org="org.webjars.bowergithub.advanced-rest-client" name="headers-list-view" rev="2.0.1">
  <artifact name="headers-list-view" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.advanced-rest-client', module='headers-list-view', version='2.0.1')
)
libraryDependencies += "org.webjars.bowergithub.advanced-rest-client" % "headers-list-view" % "2.0.1"
[org.webjars.bowergithub.advanced-rest-client/headers-list-view "2.0.1"]

Dependencies

compile (6)

Group / Artifact Type Version
org.webjars.bowergithub.polymerelements : paper-dialog jar [2.1.1,3)
org.webjars.bowergithub.polymerelements : paper-button jar [2.1.0,3)
org.webjars.bowergithub.polymerelements : paper-dialog-scrollable jar [2.2.0,3)
org.webjars.bowergithub.polymerelements : paper-item jar [2.1.0,3)
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)
org.webjars.bowergithub.advanced-rest-client : headers-parser-behavior jar [2.0.0,3)

Project Modules

There are no modules declared in this project.

Published on NPM

Build Status

Published on webcomponents.org

This component is deprecated. Use @advanced-rest-client/arc-headers instead.

headers-list-view

An element that displays a list of headers.

<headers-list-view></headers-list-view>
<script>
let headers = 'Content-Type: application-json\n';
headers += 'Content-Length: 256\n';
headers += 'Content-Encoding: gzip\n';
headers += 'x-server: x-abc.zone-europe-a.domain.company.com';
document.querySelector('headers-list-view').headers = headers;
</script>

You can put @advanced-rest-client/arc-definitions element into dom to enable interactive list. When the user double click on the list item it dispatches headers query event and arc-definitions responds to his query. If the headers details are available it renders a dialog with header description.

API components

This components is a part of API components ecosystem

Usage

Installation

npm install --save @advanced-rest-client/headers-list-view

In an html file

<html>
  <head>
    <script type="module">
      import '@advanced-rest-client/headers-list-view/headers-list-view.js';
    </script>
  </head>
  <body>
    <headers-list-view headers="..."></headers-list-view>
  </body>
</html>

In a LitElement

import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/headers-list-view/headers-list-view.js';

class SampleElement extends PolymerElement {
  render() {
    return html`
    <headers-list-view .headers="${this.headers}"></headers-list-view>
    `;
  }
}
customElements.define('sample-element', SampleElement);

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import '@advanced-rest-client/headers-list-view/headers-list-view.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
    <headers-list-view headers="[[headers]]"></headers-list-view>
    `;
  }

  _authChanged(e) {
    console.log(e.detail);
  }
}
customElements.define('sample-element', SampleElement);

Installation

git clone https://github.com/advanced-rest-client/headers-list-view
cd headers-list-view
npm install

Running the demo locally

npm start

Running the tests

npm test
org.webjars.bowergithub.advanced-rest-client

ARC

A set of repositories related to the Advanced REST Client and API console (by Mulesoft)

Versions

Version
2.0.1