npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

m-checkable

v1.0.2

Published

Highly customizable checkboxes and radio buttons

Downloads

2

Readme

mCheckable

Build Status

Highly customizable checkboxes and radio buttons.

Optionally, install via Bower: bower install m-checkable , install via NPM: npm install m-checkable Install via NuGet PM> Install-Package mCheckable

License

Released under the MIT license - http://opensource.org/licenses/MIT

Created by Balan Miroslav

Why should I use mCheckable?

  • Identical inputs across different browsers and devices
  • Highly customizable checkboxes and radio buttons for jQuery
  • Small file size, simple to implement
  • Browser support: Firefox, Chrome, Safari, iOS, Android, IE7+
  • Many configuration options

For complete documentation and examples, visit: http://mirudev.com/mcheckable/

How to install

Step 1: Link required files

First and most important, the jQuery library needs to be included (Google cdn or local jQuery file). Next, download the package from github or install via Bower: bower install m-checkable , install via NPM: npm install m-checkable, and link the mCheckable CSS file (for the theme) and the mCheckable Javascript file.

<!-- jQuery library (served from Google) -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<!-- mCheckable Javascript file -->
<script src="/js/mCheckable.jquery.min.js"></script>
<!-- mCheckable CSS file -->
<link href="/lib/mCheckable.css" rel="stylesheet">

Step 2: Create HTML markup

Create checkboxes or radio buttons that you want to customise

<label>Checkbox <input type="checkbox" name="checkbox" class="mCheck"/></label>
<label>Radio <input type="radio" name="radio" class="mCheck"/></label>

Step 3: Call the mCheckable

Call .mCheckable() on class mCheck . Note that the call must be made inside of a $(document).ready() call, or the plugin will not work!

$(document).ready(function(){
    // generate elements
    $('.mCheck').mCheckable();
});

##Configuration options

Options

className Change base class name.

default : mCheckable
options : string (class name)

classNameRadioButton Class name for radio buttons.

default : radiobutton
options : string (class name)

classNameCheckbox Class name for checkbox.

default : checkbox
options : string (class name)

addClassName Add extra class name.

default : false
options : string (class name)

baseTags Base html tags for mCheckable

default : <span></span>
options : any html tags

innerTags Inner html tags for mCheckable

default : <em></em>
options : any html tags

Methods

check Manually check an item.

$('#elem').mCheckable('check')

unCheck Manually un-check an item.

$('#elem').mCheckable('unCheck')

Events

onOpen Trigger on click mCheckable.

$('#elem').mCheckable('onClick' = function (e) {
                   // do something...
              });

Changelog