JSPM

  • Created
  • Published
  • Downloads 17645
  • Score
    100M100P100Q150772F
  • License BSD-3-Clause

An element that works similarly to a native browser select

Package Exports

  • @polymer/paper-dropdown-menu/paper-dropdown-menu
  • @polymer/paper-dropdown-menu/paper-dropdown-menu-light
  • @polymer/paper-dropdown-menu/paper-dropdown-menu.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@polymer/paper-dropdown-menu) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Published on webcomponents.org Build status

<paper-dropdown-menu>

Material design: Dropdown menus

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

<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>

Changes in 2.0

  • paper-menu-button 2.0 depends on neon-animation 2.0, which doesn't import the Web Animations polyfill, so you'll have to import it (see example)