OLD | NEW |
| (Empty) |
1 | |
2 <!--- | |
3 | |
4 This README is automatically generated from the comments in these files: | |
5 paper-radio-group.html | |
6 | |
7 Edit those files, and our readme bot will duplicate them over here! | |
8 Edit this file, and the bot will squash your changes :) | |
9 | |
10 --> | |
11 | |
12 [](https://travis-ci.org/PolymerElements/paper-radio-group) | |
13 | |
14 _[Demo and API Docs](https://elements.polymer-project.org/elements/paper-radio-g
roup)_ | |
15 | |
16 | |
17 ##<paper-radio-group> | |
18 | |
19 | |
20 Material design: [Radio button](https://www.google.com/design/spec/components/se
lection-controls.html#selection-controls-radio-button) | |
21 | |
22 `paper-radio-group` allows user to select at most one radio button from a set. | |
23 Checking one radio button that belongs to a radio group unchecks any | |
24 previously checked radio button within the same group. Use | |
25 `selected` to get or set the selected radio button. | |
26 | |
27 The <paper-radio-buttons> inside the group must have the `name` attribute | |
28 set. | |
29 | |
30 Example: | |
31 | |
32 <paper-radio-group selected="small"> | |
33 <paper-radio-button name="small">Small</paper-radio-button> | |
34 <paper-radio-button name="medium">Medium</paper-radio-button> | |
35 <paper-radio-button name="large">Large</paper-radio-button> | |
36 </paper-radio-group> | |
37 | |
38 Radio-button-groups can be made optional, and allow zero buttons to be selected: | |
39 | |
40 <paper-radio-group selected="small" allow-empty-selection> | |
41 <paper-radio-button name="small">Small</paper-radio-button> | |
42 <paper-radio-button name="medium">Medium</paper-radio-button> | |
43 <paper-radio-button name="large">Large</paper-radio-button> | |
44 </paper-radio-group> | |
45 | |
46 See <a href="paper-radio-button">paper-radio-button</a> for more | |
47 information about `paper-radio-button`. | |
48 | |
49 | |
OLD | NEW |