paper-swatch-picker

WebJar for paper-swatch-picker

License

License

BSD 3-Clause
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

paper-swatch-picker
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

paper-swatch-picker
WebJar for paper-swatch-picker
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/PolymerElements/paper-swatch-picker

Download paper-swatch-picker

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/paper-swatch-picker/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>paper-swatch-picker</artifactId>
    <version>2.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/paper-swatch-picker/
implementation 'org.webjars.bower:paper-swatch-picker:2.0.1'
// https://jarcasting.com/artifacts/org.webjars.bower/paper-swatch-picker/
implementation ("org.webjars.bower:paper-swatch-picker:2.0.1")
'org.webjars.bower:paper-swatch-picker:jar:2.0.1'
<dependency org="org.webjars.bower" name="paper-swatch-picker" rev="2.0.1">
  <artifact name="paper-swatch-picker" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='paper-swatch-picker', version='2.0.1')
)
libraryDependencies += "org.webjars.bower" % "paper-swatch-picker" % "2.0.1"
[org.webjars.bower/paper-swatch-picker "2.0.1"]

Dependencies

compile (7)

Group / Artifact Type Version
org.webjars.bower : github-com-polymerelements-paper-item jar [1,3)
org.webjars.bower : github-com-polymerelements-paper-icon-button jar [1,3)
org.webjars.bower : github-com-polymerelements-iron-flex-layout jar [1,3)
org.webjars.bower : github-com-polymerelements-iron-iconset-svg jar [1,3)
org.webjars.bower : github-com-polymer-polymer jar [1.9,3)
org.webjars.bower : github-com-polymerelements-paper-listbox jar [1,3)
org.webjars.bower : github-com-polymerelements-paper-menu-button jar [1,3)

Project Modules

There are no modules declared in this project.

Published on NPM Build status Published on webcomponents.org

<paper-swatch-picker>

<paper-swatch-picker> is a simple color picker element that will allow you to choose one of the Material Design colors from a list of available swatches.

See: Documentation, Demo.

Usage

Installation

npm install --save @polymer/paper-swatch-picker

In an html file

<html>
  <head>
    <script type="module">
      import '@polymer/paper-swatch-picker/paper-swatch-picker.js';
    </script>
  </head>
  <body>
    <paper-swatch-picker></paper-swatch-picker>
    <paper-swatch-picker column-count=5 color-list='["#65a5f2", "#83be54", "#f0d551", "#e5943c", "#a96ddb"]'></paper-swatch-picker>
  </body>
</html>

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/paper-swatch-picker/paper-swatch-picker.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
      <paper-swatch-picker></paper-swatch-picker>
      <paper-swatch-picker color="{{selectedColor}}"></paper-swatch-picker>
      <paper-swatch-picker column-count=5 color-list='["#65a5f2", "#83be54", "#f0d551", "#e5943c", "#a96ddb"]'></paper-swatch-picker>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Contributing

If you want to send a PR to this element, here are the instructions for running the tests and demo locally:

Installation

git clone https://github.com/PolymerElements/paper-swatch-picker
cd paper-swatch-picker
npm install
npm install -g polymer-cli

Running the demo locally

polymer serve --npm
open http://127.0.0.1:<port>/demo/

Running the tests

polymer test --npm

Published on NPM Build status Published on webcomponents.org

<paper-swatch-picker>

<paper-swatch-picker> is a single-line text field with Material Design styling.

See: Documentation, Demo.

Usage

Installation

npm install --save @polymer/paper-swatch-picker

In an html file

<html>
  <head>
    <script type="module">
      import '@polymer/paper-swatch-picker/paper-swatch-picker.js';
    </script>
  </head>
  <body>
    <paper-swatch-picker always-float-label label="Floating label"></paper-swatch-picker>
  </body>
</html>

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/paper-swatch-picker/paper-swatch-picker.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
      <paper-swatch-picker always-float-label label="Floating label"></paper-swatch-picker>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Contributing

If you want to send a PR to this element, here are the instructions for running the tests and demo locally:

Installation

git clone https://github.com/PolymerElements/paper-swatch-picker
cd paper-swatch-picker
npm install
npm install -g polymer-cli

Running the demo locally

polymer serve --npm
open http://127.0.0.1:<port>/demo/

Running the tests

polymer test --npm
org.webjars.bower

Versions

Version
2.0.1