Allows user to select at most one radio button from a set. Works with wired-radio.

[ This description is mirrored from README.md at github.com/wiredjs/wired-radio-group on 2019-05-10 ]

wired radio group

wired-radio-group

Allows user to select at most one radio button from a set. Works with wired-radio.

For demo and view the complete set of wired-elememts: wiredjs.com

Learn about web components here.

Usage

Add wired-radio to your project:

npm i wired-radio-group

Import wired-radio-group definition into your HTML page:

<script type="module" src="wired-radio-group/wired-radio-group.js"></script>

Or into your module script:

import { WiredRadioGroup } from "wired-radio-group"

Use it in your web page:

<wired-radio-group selected="two">
  <wired-radio name="one" text="Radio One"></wired-radio>
  <wired-radio name="two" text="Radio Two"></wired-radio>
  <wired-radio name="three" text="Radio Three"></wired-radio>
</wired-radio-group>

Properties

selected - Named of the selected radio button.

Events

selected Event fired when user changes selection

Install

Link to this version
ImportedReleased 26 August 2017MIT License
Framework Support
Polymer 2.0+
Browser Compatibility
Install with
bower install --save wiredjs/wired-radio-group"#0.1.0"
Run the above Bower command in your project folder. If you have any issues installing, please contact the author.
Release notes - Version 0.1.0

Dependencies

  • polymer#Polymer/polymer#^2.0.0
  • wired-lib#^0.1.0
  • wired-radio#^0.1.1