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.github.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/CONTRIBUTORS.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/PATENTS.txt 8 --> 9 10 <!-- 11 `paper-radio-group` allows user to select only one radio button from a set. 12 Checking one radio button that belongs to a radio group unchecks any 13 previously checked radio button within the same group. Use 14 `selected` to get or set the selected radio button. 15 16 Example: 17 18 <paper-radio-group selected="small"> 19 <paper-radio-button name="small" label="Small"></paper-radio-button> 20 <paper-radio-button name="medium" label="Medium"></paper-radio-button> 21 <paper-radio-button name="large" label="Large"></paper-radio-button> 22 </paper-radio-group> 23 24 See <a href="../paper-radio-button/">paper-radio-button</a> for more 25 information about `paper-radio-button`. 26 27 @group Paper Elements 28 @element paper-radio-group 29 @extends core-selector 30 @homepage github.io 31 --> 32 33 <link rel="import" href="../core-selector/core-selector.html"> 34 <link rel="import" href="../paper-radio-button/paper-radio-button.html"> 35 36 <polymer-element name="paper-radio-group" extends="core-selector" role="radiogroup"> 37 38 <template> 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 <script> 58 59 Polymer('paper-radio-group', { 60 61 selectedAttribute: 'checked', 62 activateEvent: 'paper-radio-button-activate' 63 64 }); 65 66 </script> 67 68 </polymer-element> 69