| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 @license | 2 @license |
| 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 --><html><head><link rel="import" href="../polymer/polymer.html"> | 9 --><html><head><link rel="import" href="../polymer/polymer.html"> |
| 10 <link rel="import" href="../iron-flex-layout/iron-flex-layout.html"> | 10 <link rel="import" href="../iron-flex-layout/iron-flex-layout.html"> |
| 11 <link rel="import" href="../iron-menu-behavior/iron-menu-behavior.html"> | 11 <link rel="import" href="../iron-menu-behavior/iron-menu-behavior.html"> |
| 12 <link rel="import" href="../paper-styles/default-theme.html"> | 12 <link rel="import" href="../paper-styles/default-theme.html"> |
| 13 <link rel="import" href="../paper-styles/color.html"> |
| 13 <link rel="import" href="paper-menu-shared-styles.html"> | 14 <link rel="import" href="paper-menu-shared-styles.html"> |
| 14 | 15 |
| 15 <!-- | 16 <!-- |
| 16 Material design: [Menus](https://www.google.com/design/spec/components/menus.htm
l) | 17 Material design: [Menus](https://www.google.com/design/spec/components/menus.htm
l) |
| 17 | 18 |
| 18 `<paper-menu>` implements an accessible menu control with Material Design stylin
g. The focused item | 19 `<paper-menu>` implements an accessible menu control with Material Design stylin
g. The focused item |
| 19 is highlighted, and the selected item has bolded text. | 20 is highlighted, and the selected item has bolded text. |
| 20 | 21 |
| 21 <paper-menu> | 22 <paper-menu> |
| 22 <paper-item>Item 1</paper-item> | 23 <paper-item>Item 1</paper-item> |
| 23 <paper-item>Item 2</paper-item> | 24 <paper-item>Item 2</paper-item> |
| 24 </paper-menu> | 25 </paper-menu> |
| 25 | 26 |
| 26 An initial selection can be specified with the `selected` attribute. | 27 An initial selection can be specified with the `selected` attribute. |
| 27 | 28 |
| 28 <paper-menu selected="0"> | 29 <paper-menu selected="0"> |
| 29 <paper-item>Item 1</paper-item> | 30 <paper-item>Item 1</paper-item> |
| 30 <paper-item>Item 2</paper-item> | 31 <paper-item>Item 2</paper-item> |
| 31 </paper-menu> | 32 </paper-menu> |
| 32 | 33 |
| 33 Make a multi-select menu with the `multi` attribute. Items in a multi-select men
u can be deselected, | 34 Make a multi-select menu with the `multi` attribute. Items in a multi-select men
u can be deselected, |
| 34 and multiple item can be selected. | 35 and multiple items can be selected. |
| 35 | 36 |
| 36 <paper-menu multi> | 37 <paper-menu multi> |
| 37 <paper-item>Item 1</paper-item> | 38 <paper-item>Item 1</paper-item> |
| 38 <paper-item>Item 2</paper-item> | 39 <paper-item>Item 2</paper-item> |
| 39 </paper-menu> | 40 </paper-menu> |
| 40 | 41 |
| 41 ### Styling | 42 ### Styling |
| 42 | 43 |
| 43 The following custom properties and mixins are available for styling: | 44 The following custom properties and mixins are available for styling: |
| 44 | 45 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 } | 81 } |
| 81 </style> | 82 </style> |
| 82 | 83 |
| 83 <div class="selectable-content"> | 84 <div class="selectable-content"> |
| 84 <content></content> | 85 <content></content> |
| 85 </div> | 86 </div> |
| 86 </template> | 87 </template> |
| 87 | 88 |
| 88 </dom-module> | 89 </dom-module> |
| 89 <script src="paper-menu-extracted.js"></script></body></html> | 90 <script src="paper-menu-extracted.js"></script></body></html> |
| OLD | NEW |