| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | 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.g
ithub.io/LICENSE | 3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE |
| 4 The complete set of authors may be found at http://polymer.github.io/AUTHORS | 4 The complete set of authors may be found at http://polymer.github.io/AUTHORS |
| 5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS | 5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS |
| 6 Code distributed by Google as part of the polymer project is also | 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/PATEN
TS | 7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS |
| 8 --> | 8 --> |
| 9 | 9 |
| 10 <!-- | 10 <!-- |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 @group Polymer Core Elements | 55 @group Polymer Core Elements |
| 56 @element core-submenu | 56 @element core-submenu |
| 57 @extends core-item | 57 @extends core-item |
| 58 --> | 58 --> |
| 59 | 59 |
| 60 <link rel="import" href="../core-item/core-item.html"> | 60 <link rel="import" href="../core-item/core-item.html"> |
| 61 <link rel="import" href="../core-menu/core-menu.html"> | 61 <link rel="import" href="../core-menu/core-menu.html"> |
| 62 <link rel="import" href="../core-collapse/core-collapse.html"> | 62 <link rel="import" href="../core-collapse/core-collapse.html"> |
| 63 | 63 |
| 64 <polymer-element name="core-submenu" attributes="selected selectedItem label ico
n src valueattr"> | 64 <polymer-element name="core-submenu" attributes="selected selectedItem selectedA
ttribute label icon src valueattr"> |
| 65 <template> | 65 <template> |
| 66 | 66 |
| 67 <link rel="stylesheet" href="core-submenu.css"> | 67 <link rel="stylesheet" href="core-submenu.css"> |
| 68 | 68 |
| 69 <core-item id="submenuItem" src="{{src}}" label="{{label}}" icon="{{icon}}" cl
ass="{{ {'core-selected' : active} | tokenList}}" on-tap="{{activate}}"> | 69 <core-item id="submenuItem" src="{{src}}" label="{{label}}" icon="{{icon}}" cl
ass="{{ {'core-selected' : active} | tokenList}}" on-tap="{{activate}}"> |
| 70 <content select=".item-content"></content> | 70 <content select=".item-content"></content> |
| 71 </core-item> | 71 </core-item> |
| 72 | 72 |
| 73 <core-menu id="submenu" selected="{{selected}}" selectedItem="{{selectedItem}}
" valueattr="{{valueattr}}"> | 73 <core-menu id="submenu" selected="{{selected}}" selectedItem="{{selectedItem}}
" selectedAttribute="{{selectedAttribute}}" valueattr="{{valueattr}}"> |
| 74 <content></content> | 74 <content></content> |
| 75 </core-menu> | 75 </core-menu> |
| 76 | 76 |
| 77 <core-collapse target="{{$.submenu}}" opened="{{opened}}"></core-collapse> | 77 <core-collapse target="{{$.submenu}}" opened="{{opened}}"></core-collapse> |
| 78 | 78 |
| 79 </template> | 79 </template> |
| 80 <script> | 80 <script> |
| 81 | 81 |
| 82 Polymer('core-submenu', { | 82 Polymer('core-submenu', { |
| 83 | 83 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 if (this.hasItems() && this.active) { | 117 if (this.hasItems() && this.active) { |
| 118 this.toggle(); | 118 this.toggle(); |
| 119 this.unselectAllItems(); | 119 this.unselectAllItems(); |
| 120 } | 120 } |
| 121 } | 121 } |
| 122 | 122 |
| 123 }); | 123 }); |
| 124 | 124 |
| 125 </script> | 125 </script> |
| 126 </polymer-element> | 126 </polymer-element> |
| OLD | NEW |