Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe s/iron-flex-layout.html"> | |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/pap er-dropdown-menu.html"> | |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis tbox.html"> | |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l"> | |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-iconset-svg/iron-i conset-svg.html"> | |
| 7 | |
| 8 <iron-iconset-svg name="oobe-i18n-dropdown" size="24"> | |
| 9 <svg> | |
| 10 <defs> | |
| 11 <g id="check"> | |
|
stevenjb
2016/07/29 16:11:52
Attribute where this came from, e.g. see comment i
Alexander Alekseev
2016/07/30 00:52:50
Done.
| |
| 12 <path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"> | |
| 13 </path> | |
| 14 </g> | |
| 15 </defs> | |
| 16 </svg> | |
| 17 </iron-iconset-svg> | |
| 18 | |
| 19 <dom-module id="oobe-i18n-dropdown"> | |
| 20 <template> | |
| 21 <style> | |
| 22 .selected-icon { | |
| 23 color: var(--google-blue-500); | |
| 24 } | |
| 25 </style> | |
| 26 <paper-dropdown-menu no-label-float> | |
| 27 <paper-listbox id="listboxDropdown" class="dropdown-content"> | |
| 28 <template is="dom-repeat" items$="[[items]]" on-dom-change="onDomChange_ "> | |
|
michaelpg
2016/07/29 06:26:49
items should be property-bound not attribute-bound
michaelpg
2016/07/29 06:26:50
wrap line
Alexander Alekseev
2016/07/30 00:52:50
Done.
The problem (was) that it doesn't work when
Alexander Alekseev
2016/07/30 00:52:50
Done.
| |
| 29 <paper-item item="[[item]]" disabled="[[item.optionGroupName]]"> | |
| 30 <div class="flex horizontal layout justified"> | |
| 31 <div class="item-name" hidden="[[item.optionGroupName]]"> | |
| 32 [[item.title]] | |
| 33 </div> | |
| 34 <iron-icon icon="oobe-i18n-dropdown:check" class="selected-icon" | |
| 35 hidden="[[!item.selected]]"> | |
| 36 </iron-icon> | |
| 37 </div> | |
| 38 <hr hidden="[[!item.optionGroupName]]"> | |
| 39 </paper-item> | |
| 40 </template> | |
| 41 </paper-listbox> | |
| 42 </paper-dropdown-menu> | |
| 43 </template> | |
| 44 </dom-module> | |
| OLD | NEW |