| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <!-- |
| 3 @license |
| 4 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 5 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 7 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 8 Code distributed by Google as part of the polymer project is also |
| 9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 10 --> |
| 11 <html> |
| 12 <head> |
| 13 |
| 14 <meta charset="utf-8"> |
| 15 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 16 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1, user-scalable=yes"> |
| 17 |
| 18 <title>paper-menu demo</title> |
| 19 |
| 20 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> |
| 21 |
| 22 <link rel="import" href="../../paper-item/paper-item.html"> |
| 23 <link rel="import" href="../paper-menu.html"> |
| 24 <link rel="import" href="../../paper-styles/paper-styles.html"> |
| 25 <link rel="import" href="../../paper-styles/demo-pages.html"> |
| 26 |
| 27 <style> |
| 28 .horizontal-section { |
| 29 padding: 0 !important; |
| 30 } |
| 31 |
| 32 .avatar { |
| 33 display: inline-block; |
| 34 width: 40px; |
| 35 height: 40px; |
| 36 border-radius: 50%; |
| 37 overflow: hidden; |
| 38 background: #ccc; |
| 39 } |
| 40 </style> |
| 41 </head> |
| 42 <body> |
| 43 <div class="horizontal center-justified layout"> |
| 44 <div> |
| 45 <h4>Standard</h4> |
| 46 <div class="horizontal-section"> |
| 47 <paper-menu class="list"> |
| 48 <paper-item>Inbox</paper-item> |
| 49 <paper-item>Starred</paper-item> |
| 50 <paper-item>Sent mail</paper-item> |
| 51 <paper-item>Drafts</paper-item> |
| 52 </paper-menu> |
| 53 </div> |
| 54 </div> |
| 55 |
| 56 <div> |
| 57 <h4>Pre-selected</h4> |
| 58 <div class="horizontal-section"> |
| 59 <paper-menu class="list" selected="0"> |
| 60 <paper-item>Inbox</paper-item> |
| 61 <paper-item disabled>Starred</paper-item> |
| 62 <paper-item>Sent mail</paper-item> |
| 63 <paper-item>Drafts</paper-item> |
| 64 </paper-menu> |
| 65 </div> |
| 66 </div> |
| 67 |
| 68 <div> |
| 69 <h4>Multi-select</h4> |
| 70 <div class="horizontal-section"> |
| 71 <paper-menu class="list" multi> |
| 72 <paper-item>Bold</paper-item> |
| 73 <paper-item>Italic</paper-item> |
| 74 <paper-item>Underline</paper-item> |
| 75 <paper-item>Strikethrough</paper-item> |
| 76 </paper-menu> |
| 77 </div> |
| 78 </div> |
| 79 </div> |
| 80 </body> |
| 81 </html> |
| OLD | NEW |