| Index: third_party/polymer/components/paper-radio-group/paper-radio-group.html
|
| diff --git a/third_party/polymer/components/paper-radio-group/paper-radio-group.html b/third_party/polymer/components/paper-radio-group/paper-radio-group.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1a7d0072fec3f267df70965f6e1afae839c67f68
|
| --- /dev/null
|
| +++ b/third_party/polymer/components/paper-radio-group/paper-radio-group.html
|
| @@ -0,0 +1,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>
|
|
|