wired-radio-group
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
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
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Dependencies
- polymer#Polymer/polymer#^2.0.0
- wired-lib#^0.1.0
- wired-radio#^0.1.1
- Released
- 2017-08-26
- Maturity
- IMPORTED
- License
- MIT License
Compatibility
- Framework
- Polymer 2.0+
- Browser
- Browser Independent