| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 2 Copyright (c) 2015 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.txt | 3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.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/CONTRI
BUTORS.txt | 5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 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.txt | 7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 8 --><html><head><link rel="import" href="../polymer/polymer.html"> | 8 --><html><head><link rel="import" href="../polymer/polymer.html"> |
| 9 <link rel="import" href="../paper-ripple/paper-ripple.html"> | 9 <link rel="import" href="../paper-ripple/paper-ripple.html"> |
| 10 <link rel="import" href="../paper-styles/default-theme.html"> | 10 <link rel="import" href="../paper-styles/default-theme.html"> |
| 11 <link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html"> | 11 <link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html"> |
| 12 <link rel="import" href="../iron-checked-element-behavior/iron-checked-element-b
ehavior.html"> |
| 12 | 13 |
| 13 <!-- | 14 <!-- |
| 14 `paper-radio-button` is a button that can be either checked or unchecked. | 15 `paper-radio-button` is a button that can be either checked or unchecked. |
| 15 User can tap the radio button to check or uncheck it. | 16 User can tap the radio button to check or uncheck it. |
| 16 | 17 |
| 17 Use a `<paper-radio-group>` to group a set of radio buttons. When radio buttons | 18 Use a `<paper-radio-group>` to group a set of radio buttons. When radio buttons |
| 18 are inside a radio group, exactly one radio button in the group can be checked | 19 are inside a radio group, exactly one radio button in the group can be checked |
| 19 at any time. | 20 at any time. |
| 20 | 21 |
| 21 Example: | 22 Example: |
| (...skipping 25 matching lines...) Expand all Loading... |
| 47 <link rel="import" type="css" href="paper-radio-button.css"> | 48 <link rel="import" type="css" href="paper-radio-button.css"> |
| 48 | 49 |
| 49 <template> | 50 <template> |
| 50 | 51 |
| 51 <div id="radioContainer"> | 52 <div id="radioContainer"> |
| 52 <div id="offRadio"></div> | 53 <div id="offRadio"></div> |
| 53 <div id="onRadio"></div> | 54 <div id="onRadio"></div> |
| 54 <paper-ripple id="ink" class="circle" center="" checked$="[[checked]]"></p
aper-ripple> | 55 <paper-ripple id="ink" class="circle" center="" checked$="[[checked]]"></p
aper-ripple> |
| 55 </div> | 56 </div> |
| 56 | 57 |
| 57 <div id="radioLabel" aria-hidden="true"><content></content></div> | 58 <div id="radioLabel"><content></content></div> |
| 58 | 59 |
| 59 </template> | 60 </template> |
| 60 | 61 |
| 61 </dom-module> | 62 </dom-module> |
| 62 <script src="paper-radio-button-extracted.js"></script></body></html> | 63 <script src="paper-radio-button-extracted.js"></script></body></html> |
| OLD | NEW |