Installations
npm install @polymer/paper-radio-group
Developer
PolymerElements
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
10.9.0
NPM Version
6.4.1
Statistics
19 Stars
217 Commits
29 Forks
16 Watching
12 Branches
39 Contributors
Updated on 29 Apr 2022
Languages
HTML (67.65%)
JavaScript (32.35%)
Total Downloads
Cumulative downloads
Total Downloads
1,226,847
Last day
28.8%
1,106
Compared to previous day
Last week
19.2%
6,511
Compared to previous week
Last month
37.6%
25,630
Compared to previous month
Last year
-4.5%
217,311
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
<paper-radio-group>
<paper-radio-group>
allows user to select at most 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.
The <paper-radio-button>
elements inside the group must have the name
attribute set.
See: Documentation, Demo.
Usage
Installation
npm install --save @polymer/paper-radio-group
In an HTML file
1<html> 2 <head> 3 <script type="module"> 4 import '@polymer/paper-radio-button/paper-radio-button.js'; 5 import '@polymer/paper-radio-group/paper-radio-group.js'; 6 </script> 7 </head> 8 <body> 9 <paper-radio-group selected="small"> 10 <paper-radio-button name="small">Small</paper-radio-button> 11 <paper-radio-button name="medium">Medium</paper-radio-button> 12 <paper-radio-button name="large">Large</paper-radio-button> 13 </paper-radio-group> 14 </body> 15</html>
In a Polymer 3 element
1import {PolymerElement} from '@polymer/polymer/polymer-element.js'; 2import {html} from '@polymer/polymer/lib/utils/html-tag.js'; 3 4import '@polymer/paper-radio-button/paper-radio-button.js'; 5import '@polymer/paper-radio-group/paper-radio-group.js'; 6 7class ExampleElement extends PolymerElement { 8 static get template() { 9 return html` 10 <paper-radio-group selected="small"> 11 <paper-radio-button name="small">Small</paper-radio-button> 12 <paper-radio-button name="medium">Medium</paper-radio-button> 13 <paper-radio-button name="large">Large</paper-radio-button> 14 </paper-radio-group> 15 `; 16 } 17} 18 19customElements.define('example-element', ExampleElement);
Contributing
If you want to send a PR to this element, here are the instructions for running the tests and demo locally:
Installation
1git clone https://github.com/PolymerElements/paper-radio-group 2cd paper-radio-group 3npm install 4npm install -g polymer-cli
Running the demo locally
1polymer serve --npm 2open http://127.0.0.1:<port>/demo/
Running the tests
1polymer test --npm
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 3/25 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 9 are checked with a SAST tool
Reason
30 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9
- Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq
- Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp
- Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695
- Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm
- Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574
- Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-xf5p-87ch-gxw2
- Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj
- Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m / GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-fhjf-83wg-r2j9
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-wvhm-4hhf-97x9
- Warn: Project is vulnerable to: GHSA-h4hr-7fg3-h35w
- Warn: Project is vulnerable to: GHSA-gj77-59wh-66hg
- Warn: Project is vulnerable to: GHSA-hqhp-5p83-hx96
- Warn: Project is vulnerable to: GHSA-3949-f494-cm99
- Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp
- Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr
Score
1.6
/10
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More