@polymer/paper-dropdown-menu

WebJar for @polymer/paper-dropdown-menu

License

License

BSD 3-Clause
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

polymer__paper-dropdown-menu
Last Version

Last Version

3.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

@polymer/paper-dropdown-menu
WebJar for @polymer/paper-dropdown-menu
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/PolymerElements/paper-dropdown-menu

Download polymer__paper-dropdown-menu

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/polymer__paper-dropdown-menu/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>polymer__paper-dropdown-menu</artifactId>
    <version>3.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/polymer__paper-dropdown-menu/
implementation 'org.webjars.npm:polymer__paper-dropdown-menu:3.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/polymer__paper-dropdown-menu/
implementation ("org.webjars.npm:polymer__paper-dropdown-menu:3.1.0")
'org.webjars.npm:polymer__paper-dropdown-menu:jar:3.1.0'
<dependency org="org.webjars.npm" name="polymer__paper-dropdown-menu" rev="3.1.0">
  <artifact name="polymer__paper-dropdown-menu" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='polymer__paper-dropdown-menu', version='3.1.0')
)
libraryDependencies += "org.webjars.npm" % "polymer__paper-dropdown-menu" % "3.1.0"
[org.webjars.npm/polymer__paper-dropdown-menu "3.1.0"]

Dependencies

compile (11)

Group / Artifact Type Version
org.webjars.npm : polymer__paper-ripple jar [3.0.0-pre.26,4)
org.webjars.npm : polymer__iron-a11y-keys-behavior jar [3.0.0-pre.26,4)
org.webjars.npm : polymer__iron-validatable-behavior jar [3.0.0-pre.26,4)
org.webjars.npm : polymer__iron-iconset-svg jar [3.0.0-pre.26,4)
org.webjars.npm : polymer__paper-input jar [3.1.0,4)
org.webjars.npm : polymer__polymer jar [3.3.1,4)
org.webjars.npm : polymer__paper-menu-button jar [3.0.0-pre.26,4)
org.webjars.npm : polymer__paper-behaviors jar [3.0.0-pre.27,4)
org.webjars.npm : polymer__iron-icon jar [3.0.0-pre.26,4)
org.webjars.npm : polymer__paper-styles jar [3.0.0-pre.26,4)
org.webjars.npm : polymer__iron-form-element-behavior jar [3.0.0-pre.26,4)

Project Modules

There are no modules declared in this project.

Published on NPM Build status Published on webcomponents.org

<paper-dropdown-menu>

paper-dropdown-menu is similar to a native browser select element. paper-dropdown-menu works with selectable content.

See: Documentation, Demo.

Usage

Installation

npm install --save @polymer/paper-dropdown-menu

In an html file

<html>
  <head>
    <script type="module">
      import '@polymer/paper-dropdown-menu/paper-dropdown-menu.js';
      import '@polymer/paper-item/paper-item.js';
      import '@polymer/paper-listbox/paper-listbox.js';
    </script>
  </head>
  <body>
    <paper-dropdown-menu label="Dinosaurs">
      <paper-listbox slot="dropdown-content" selected="1">
        <paper-item>allosaurus</paper-item>
        <paper-item>brontosaurus</paper-item>
        <paper-item>carcharodontosaurus</paper-item>
        <paper-item>diplodocus</paper-item>
      </paper-listbox>
    </paper-dropdown-menu>
  </body>
</html>

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/paper-dropdown-menu/paper-dropdown-menu.js';
import '@polymer/paper-item/paper-item.js';
import '@polymer/paper-listbox/paper-listbox.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
      <paper-dropdown-menu label="Dinosaurs">
        <paper-listbox slot="dropdown-content" selected="1">
          <paper-item>allosaurus</paper-item>
          <paper-item>brontosaurus</paper-item>
          <paper-item>carcharodontosaurus</paper-item>
          <paper-item>diplodocus</paper-item>
        </paper-listbox>
      </paper-dropdown-menu>
    `;
  }
}
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-dropdown-menu
cd paper-dropdown-menu
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.npm

Versions

Version
3.1.0
3.0.1