1 <!-- 2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. 3 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt 4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 5 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt 6 Code distributed by Google as part of the polymer project is also 7 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt 8 --> 9 <!-- 10 A `paper-menu-button` is a `paper-icon-button` that opens a drop down menu when tapped. 11 12 Example: 13 14 <paper-menu-button icon="menu"> 15 <div>Menu Item 1</div> 16 <div>Menu Item 2</div> 17 <div>Menu Item 3</div> 18 </paper-menu-button> 19 20 @group Paper Elements 21 @element paper-menu-button 22 @extends paper-focusable 23 --> 24 <link href="../polymer/polymer.html" rel="import"> 25 <link href="../core-icon/core-icon.html" rel="import"> 26 <link href="../core-menu/core-menu.html" rel="import"> 27 <link href="../paper-focusable/paper-focusable.html" rel="import"> 28 <link href="../paper-shadow/paper-shadow.html" rel="import"> 29 <link href="paper-menu-button-overlay.html" rel="import"> 30 <link href="paper-menu-button-transition.html" rel="import"> 31 32 <polymer-element name="paper-menu-button-overlay-container" assetpath=""> 33 <template> 34 <content></content> 35 </template> 36 </polymer-element> 37 38 <polymer-element name="paper-menu-button" extends="paper-focusable" attributes="src icon opened halign valign slow" on-tap="{{tapAction}}" assetpath=""> 39 <template> 40 <link rel="stylesheet" href="paper-menu-button.css"> 41 <paper-menu-button-overlay target="{{$.overlay}}" relatedtarget="{{}}" halign="{{halign}}" valign="{{valign}}" opened="{{opened}}" transition="paper-menu-button-transition-top-{{halign}}{{slow ? '-slow' : ''}}"></paper-menu-button-overlay> 42 <paper-menu-button-overlay-container id="overlay"> 43 <paper-shadow target="{{$.overlayBg}}" z="0" hasposition=""></paper-shadow> 44 <div class="paper-menu-button-overlay-ink"></div> 45 <div id="overlayBg" class="paper-menu-button-overlay-bg"></div> 46 <core-menu id="menu"> 47 <content></content> 48 </core-menu> 49 </paper-menu-button-overlay-container> 50 <core-icon src="{{src}}" icon="{{icon}}"></core-icon> 51 </template> 52 53 </polymer-element> 54 <script src="paper-menu-button-extracted.js"></script>