Skip to content

mykyta-shyrin/checkbox.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

checkbox.js

Small fully-customisable checkbox/radiobutton widget.

Usage

new Checkbox(elem, options)
Checkbox(elem, options)

[new] Checkbox([elem0, elem1, ...], options)
[new] Checkbox(nodeList, options)

Options

There are 3 parameters, that can be passed to constructor:

"template" - template for single checkbox/radiobutton (default: '<div class="checkbox">[text]</div>')
"class-checked" - className for widget, showing checked checkbox
"attr-text" - name of the checkbox's attribute, that containes [text] value for the template

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published