| OLD | NEW |
| (Empty) |
| 1 <!-- | |
| 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.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 | |
| 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 | |
| 8 --><!-- | |
| 9 `paper-radio-group` allows user to select only one radio button from a set. | |
| 10 Checking one radio button that belongs to a radio group unchecks any | |
| 11 previously checked radio button within the same group. Use | |
| 12 `selected` to get or set the selected radio button. | |
| 13 | |
| 14 Example: | |
| 15 | |
| 16 <paper-radio-group selected="small"> | |
| 17 <paper-radio-button name="small" label="Small"></paper-radio-button> | |
| 18 <paper-radio-button name="medium" label="Medium"></paper-radio-button> | |
| 19 <paper-radio-button name="large" label="Large"></paper-radio-button> | |
| 20 </paper-radio-group> | |
| 21 | |
| 22 See <a href="../paper-radio-button/">paper-radio-button</a> for more | |
| 23 information about `paper-radio-button`. | |
| 24 | |
| 25 @group Paper Elements | |
| 26 @element paper-radio-group | |
| 27 @extends core-selector | |
| 28 @homepage github.io | |
| 29 --><html><head><link rel="import" href="../core-a11y-keys/core-a11y-keys.html"> | |
| 30 <link rel="import" href="../core-selector/core-selector.html"> | |
| 31 <link rel="import" href="../paper-radio-button/paper-radio-button.html"> | |
| 32 | |
| 33 </head><body><polymer-element name="paper-radio-group" extends="core-selector" r
ole="radiogroup" assetpath=""> | |
| 34 | |
| 35 <template> | |
| 36 | |
| 37 <core-a11y-keys target="{{}}" keys="up left" on-keys-pressed="{{selectPrevio
us}}"></core-a11y-keys> | |
| 38 <core-a11y-keys target="{{}}" keys="down right" on-keys-pressed="{{selectNex
t}}"></core-a11y-keys> | |
| 39 | |
| 40 <style> | |
| 41 | |
| 42 :host { | |
| 43 display: inline-block; | |
| 44 } | |
| 45 | |
| 46 polyfill-next-selector { content: ':host > *'; } | |
| 47 ::content > * { | |
| 48 padding: 12px; | |
| 49 } | |
| 50 | |
| 51 </style> | |
| 52 | |
| 53 <shadow></shadow> | |
| 54 | |
| 55 </template> | |
| 56 | |
| 57 | |
| 58 | |
| 59 </polymer-element> | |
| 60 <script charset="utf-8" src="paper-radio-group-extracted.js"></script></body></h
tml> | |
| OLD | NEW |