Skip to content

jinkelajs/jinkela-radio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jinkela-Radio

Install

npm install jinkela-radio

Usage

new Radio([args])

  • args Object Set of configurable options to set. Can have the following fields:
    • text String The default text.
    • readonly Boolean The readonly flag.

Demo Live

<meta charset="utf-8" />
<script src="https://unpkg.com/jinkela@1.2.19/umd.js"></script>
<script src="https://unpkg.com/jinkela-radio@1.0.0/index.js"></script>
<script>
addEventListener('load', () => {

  let hehe = new Radio({ text: 'hehe' }).to(document.body);

  console.log(hehe.checked);

});
</script>