blob: 1a7d0072fec3f267df70965f6e1afae839c67f68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
<!--
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<!--
`paper-radio-group` allows user to select only one radio button from a set.
Checking one radio button that belongs to a radio group unchecks any
previously checked radio button within the same group. Use
`selected` to get or set the selected radio button.
Example:
<paper-radio-group selected="small">
<paper-radio-button name="small" label="Small"></paper-radio-button>
<paper-radio-button name="medium" label="Medium"></paper-radio-button>
<paper-radio-button name="large" label="Large"></paper-radio-button>
</paper-radio-group>
See <a href="../paper-radio-button/">paper-radio-button</a> for more
information about `paper-radio-button`.
@group Paper Elements
@element paper-radio-group
@extends core-selector
@homepage github.io
-->
<link rel="import" href="../core-selector/core-selector.html">
<link rel="import" href="../paper-radio-button/paper-radio-button.html">
<polymer-element name="paper-radio-group" extends="core-selector" role="radiogroup">
<template>
<style>
:host {
display: inline-block;
}
polyfill-next-selector { content: ':host > *'; }
::content > * {
padding: 12px;
}
</style>
<shadow></shadow>
</template>
<script>
Polymer('paper-radio-group', {
selectedAttribute: 'checked',
activateEvent: 'paper-radio-button-activate'
});
</script>
</polymer-element>
|