checkbox-radio-styler

v1.0.0-beta.3
commonjs / es6 checkbox/radio styling module
checkbox radio styler javascript commonjs nojquery

checkbox/radio styling module for es6

Features

  • No dependencies
  • ES2015 support (use babel)

use browserify with babelify extension or gulp version

Installation

npm

npm install checkbox-radio-styler --save

bower

bower install checkbox-radio-styler --save

Usage

include checkbox-radio-styler.js and checkbox-radio-styler.css

init

var styled = new CheckboxRadioStyler('input[type="checkbox"], input[type="radio"]');
styled.init();

destroy

styled.destroy();

todo:

  • check input type
  • test in browsers
  • write some tests
  • test memory usage
  • maybe get rid of "ElementStyler" class
npm i checkbox-radio-styler

Metadata

  • MIT
  • Whatever
  • Danila Dergachev
  • released 9/29/2015

Downloads

Maintainers