-
Notifications
You must be signed in to change notification settings - Fork 5
/
paper-button-group.html
47 lines (37 loc) · 1.23 KB
/
paper-button-group.html
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
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-selector/iron-selectable.html">
<!--link rel="import" href="../iron-a11y-keys-behavior/iron-a11y-keys-behavior.html"-->
<!--
`paper-button-group` allows user to select only one button from a set.
Checking one button that belongs to a group unchecks any
previously checked button within the same group. Use
`selected` to get or set the selected button.
Example:
<paper-button-group selected="small">
<paper-button name="small">Small</paper-button>
<paper-button name="medium">Medium</paper-button>
<paper-button name="large">Large</paper-button>
</paper-button-group>
See <a href="paper-button">paper-button</a> for more
information about `paper-button`.
@element paper-button-group
@demo demo/index.html
-->
<dom-module id="paper-button-group">
<template>
<slot></slot>
</template>
</dom-module>
<script>
Polymer({
is: 'paper-button-group',
behaviors: [
Polymer.IronSelectableBehavior,
Polymer.IronA11yKeysBehavior
],
ready: function () {
this.selectable = 'paper-button';
this.selectedAttribute = 'active';
}
});
</script>