| 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 --> | 9 --> |
| 10 | 10 |
| 11 <link rel="import" href="../polymer/polymer.html"> | 11 <link rel="import" href="../polymer/polymer.html"> |
| 12 <link rel="import" href="../iron-selector/iron-selectable.html"> | 12 <link rel="import" href="../iron-selector/iron-selectable.html"> |
| 13 <link rel="import" href="../paper-radio-button/paper-radio-button.html"> | 13 <link rel="import" href="../paper-radio-button/paper-radio-button.html"> |
| 14 <link rel="import" href="../iron-a11y-keys-behavior/iron-a11y-keys-behavior.html
"> | 14 <link rel="import" href="../iron-a11y-keys-behavior/iron-a11y-keys-behavior.html
"> |
| 15 | 15 |
| 16 <!-- | 16 <!-- |
| 17 `paper-radio-group` allows user to select only one radio button from a set. | 17 `paper-radio-group` allows user to select only one radio button from a set. |
| 18 Checking one radio button that belongs to a radio group unchecks any | 18 Checking one radio button that belongs to a radio group unchecks any |
| 19 previously checked radio button within the same group. Use | 19 previously checked radio button within the same group. Use |
| 20 `selected` to get or set the selected radio button. | 20 `selected` to get or set the selected radio button. |
| 21 | 21 |
| 22 Example: | 22 Example: |
| 23 | 23 |
| 24 <paper-radio-group selected="small"> | 24 <paper-radio-group selected="small"> |
| 25 <paper-radio-button name="small" label="Small"></paper-radio-button> | 25 <paper-radio-button name="small">Small</paper-radio-button> |
| 26 <paper-radio-button name="medium" label="Medium"></paper-radio-button> | 26 <paper-radio-button name="medium">Medium</paper-radio-button> |
| 27 <paper-radio-button name="large" label="Large"></paper-radio-button> | 27 <paper-radio-button name="large">Large</paper-radio-button> |
| 28 </paper-radio-group> | 28 </paper-radio-group> |
| 29 | 29 |
| 30 See <a href="paper-radio-button.html">paper-radio-button</a> for more | 30 See <a href="paper-radio-button.html">paper-radio-button</a> for more |
| 31 information about `paper-radio-button`. | 31 information about `paper-radio-button`. |
| 32 | 32 |
| 33 @group Paper Elements | 33 @group Paper Elements |
| 34 @element paper-radio-group | 34 @element paper-radio-group |
| 35 @hero hero.svg | 35 @hero hero.svg |
| 36 @demo demo/index.html | 36 @demo demo/index.html |
| 37 --> | 37 --> |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 var newIndex = Number(this._valueToIndex(this.selected)); | 135 var newIndex = Number(this._valueToIndex(this.selected)); |
| 136 | 136 |
| 137 do { | 137 do { |
| 138 newIndex = (newIndex + 1 + length) % length; | 138 newIndex = (newIndex + 1 + length) % length; |
| 139 } while (this.items[newIndex].disabled) | 139 } while (this.items[newIndex].disabled) |
| 140 | 140 |
| 141 this.select(this._indexToValue(newIndex)); | 141 this.select(this._indexToValue(newIndex)); |
| 142 }, | 142 }, |
| 143 }); | 143 }); |
| 144 </script> | 144 </script> |
| OLD | NEW |