OLD | NEW |
1 iron-dropdown | |
2 ============= | |
3 | 1 |
4 An element that implements a simple drop-down menu widget with a trigger and con
tent. | 2 <!--- |
| 3 |
| 4 This README is automatically generated from the comments in these files: |
| 5 iron-dropdown.html |
| 6 |
| 7 Edit those files, and our readme bot will duplicate them over here! |
| 8 Edit this file, and the bot will squash your changes :) |
| 9 |
| 10 --> |
| 11 |
| 12 [](https://travis-ci.org/PolymerElements/iron-dropdown) |
| 13 |
| 14 _[Demo and API Docs](https://elements.polymer-project.org/elements/iron-dropdown
)_ |
| 15 |
| 16 |
| 17 ##<iron-dropdown> |
| 18 |
| 19 |
| 20 `<iron-dropdown>` is a generalized element that is useful when you have |
| 21 hidden content (`.dropdown-content`) that is revealed due to some change in |
| 22 state that should cause it to do so. |
| 23 |
| 24 Note that this is a low-level element intended to be used as part of other |
| 25 composite elements that cause dropdowns to be revealed. |
| 26 |
| 27 Examples of elements that might be implemented using an `iron-dropdown` |
| 28 include comboboxes, menubuttons, selects. The list goes on. |
| 29 |
| 30 The `<iron-dropdown>` element exposes attributes that allow the position |
| 31 of the `.dropdown-content` relative to the `.dropdown-trigger` to be |
| 32 configured. |
| 33 |
| 34 <iron-dropdown horizontal-align="right" vertical-align="top"> |
| 35 <div class="dropdown-content">Hello!</div> |
| 36 </iron-dropdown> |
| 37 |
| 38 In the above example, the `<div>` with class `.dropdown-content` will be |
| 39 hidden until the dropdown element has `opened` set to true, or when the `open` |
| 40 method is called on the element. |
| 41 |
| 42 |
OLD | NEW |