| 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-selector/iron-selector.html"> | 10 <link rel="import" href="../iron-selector/iron-selectable.html"> |
| 11 <link rel="import" href="../paper-radio-button/paper-radio-button.html"> | 11 <link rel="import" href="../paper-radio-button/paper-radio-button.html"> |
| 12 <link rel="import" href="../iron-a11y-keys-behavior/iron-a11y-keys-behavior.html
"> | 12 <link rel="import" href="../iron-a11y-keys-behavior/iron-a11y-keys-behavior.html
"> |
| 13 | 13 |
| 14 <!-- | 14 <!-- |
| 15 `paper-radio-group` allows user to select only one radio button from a set. | 15 `paper-radio-group` allows user to select only one radio button from a set. |
| 16 Checking one radio button that belongs to a radio group unchecks any | 16 Checking one radio button that belongs to a radio group unchecks any |
| 17 previously checked radio button within the same group. Use | 17 previously checked radio button within the same group. Use |
| 18 `selected` to get or set the selected radio button. | 18 `selected` to get or set the selected radio button. |
| 19 | 19 |
| 20 Example: | 20 Example: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 33 @hero hero.svg | 33 @hero hero.svg |
| 34 @demo demo/index.html | 34 @demo demo/index.html |
| 35 --> | 35 --> |
| 36 | 36 |
| 37 </head><body><dom-module name="paper-radio-group"> | 37 </head><body><dom-module name="paper-radio-group"> |
| 38 <style> | 38 <style> |
| 39 :host { | 39 :host { |
| 40 display: inline-block; | 40 display: inline-block; |
| 41 } | 41 } |
| 42 | 42 |
| 43 iron-selector ::content > * { | 43 :host ::content > * { |
| 44 padding: 12px; | 44 padding: 12px; |
| 45 } | 45 } |
| 46 </style> | 46 </style> |
| 47 | 47 |
| 48 <template> | 48 <template> |
| 49 <iron-selector selected="{{selected}}" attr-for-selected="name" selectable="
paper-radio-button"> | |
| 50 <content id="items" select="*"></content> | 49 <content id="items" select="*"></content> |
| 51 </iron-selector> | |
| 52 </template> | 50 </template> |
| 53 | 51 |
| 54 </dom-module> | 52 </dom-module> |
| 55 | 53 |
| 56 <script src="paper-radio-group-extracted.js"></script></body></html> | 54 <script src="paper-radio-group-extracted.js"></script></body></html> |
| OLD | NEW |