files-payload-editor

WebJar for files-payload-editor

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

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

ArtifactId

files-payload-editor
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

files-payload-editor
WebJar for files-payload-editor
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/advanced-rest-client/files-payload-editor

Download files-payload-editor

How to add to project

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

Dependencies

compile (8)

Group / Artifact Type Version
org.webjars.bowergithub.polymerelements : iron-validatable-behavior jar [2.1.0,3)
org.webjars.bowergithub.polymerelements : paper-styles jar [2.0.0,3)
org.webjars.bowergithub.polymerelements : paper-button jar [2.1.0,3)
org.webjars.bowergithub.polymerelements : iron-flex-layout jar [2.0.3,3)
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)
org.webjars.bowergithub.polymerelements : paper-icon-button jar [2.2.0,3)
org.webjars.bowergithub.polymerelements : iron-icon jar [2.0.0,3)
org.webjars.bowergithub.advanced-rest-client : arc-icons jar [2.0.2,3)

Project Modules

There are no modules declared in this project.

Published on NPM

Build Status

Published on webcomponents.org

files-payload-editor

<files-payload-editor> A request body editor to add files as a payload. With this element the user can select single file that will be used in the request body.

The element can be used in forms when iron-form is used. It contains validation methods to validate user input.

Usage

Installation

npm install --save @advanced-rest-client/files-payload-editor

In an html file

<html>
  <head>
    <script type="module">
      import '@advanced-rest-client/files-payload-editor/files-payload-editor.js';
    </script>
  </head>
  <body>
    <files-payload-editor></files-payload-editor>
    <script>
    {
      document.querySelector('files-payload-editor').onchange = (e) => {
        console.log(e.target.value); // or e.detail.value
      };
    }
    </script>
  </body>
</html>

In a LitElement template

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

class SampleElement extends LitElement {
  render() {
    return html`
    <files-payload-editor @value-changed="${this._fileChanged}"></files-payload-editor>
    `;
  }

  _fileChanged(e) {
    this.body = e.detail.value;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/files-payload-editor
cd files-payload-editor
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