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 🙏

© 2026 – Pkg Stats / Ryan Hefner

gemini-checkbox

v1.0.3

Published

A full-featured checkbox jquery plugin

Readme

gemini-checkbox

A full-featured checkbox jquery plugin

Date Image Gemini Checkbox

Features

  • Supports more configurable options.
  • Supports more methods
  • Supports more events
  • Supports fast internationalization
  • Cross-browser support

Example image

Type: single

Single Checkbox

Type: group

Checkbox Group

Getting started

Quick start

  • Clone the repository: git clone https://github.com/gregzhang616/gemini-checkbox.git.
  • Install with Npm: npm install gemini-checkbox.
  • Install with Bower: bower install gemini-checkbox.

Installation

Include files:

Css file

<link rel="stylesheet" href="/css/gemini.checkbox.min.css">

Javascript file

<script src="/assets/js/jquery.min.js"></script>
<script src="/js/gemini.checkbox.min.js"></script>

Attributes

You may set checkbox options with $().checkbox(options), the options type is Object.

| Name | Type | Default value | Optional value | Description | | :--- | :--- | :--- | :--- | :--- | | name | String | '' | -- | native attribute for checkbox | | checklist | String/Array | '' | -- | rendered data for checkbox, type is String or Array, such as 'Agree' or ['JD', 'Alibaba'] or [{label: 'JD', value: 1}, {label: 'Alibaba', value: 2}] | | disabled | Boolean/Array | null | -- | disabled data for checkbox, such as true/false or ['JD'] or [1] | | defaultValue | Boolean/Array | null | -- | default value for single checkbox or checkbox group. | | size | String | 'small' | small/medium/large | The size for checkbox or checkbox group. |

Methods

Common usage

$().checkbox(methodName, argument1, argument2, ..., argumentN);
setValue(value)

Set the current value with a new value, parameter value type is Boolean or Array .

$().checkbox('setValue', true);
$().checkbox('setValue', ['JD', 'Alibaba']);
$().checkbox('setValue', [1, 2]);
getValue()

Get the current checked value.

$().checkbox('getValue');
reset()

reset the checkbox checked status.

$().checkbox('reset');
disable(value)

disable or enable the picker, if parameter value is true that can disable the picker, otherwise can enable the picker.

// disable the single checkbox
$().checkbox('disable', true);
// enable the single checkbox
$().checkbox('disable', false);

// disable the checkbox group item
$().checkbox('disable', ['JD', ...]); or $().checkbox('disable', [1, ...]);
// disable the all the checkbox item
$().checkbox('disable'); 
// enable the all the checkbox item
$().checkbox('disable', []);
destroy()

Destroy the checkbox and remove the instance from target element.

$().checkbox('destroy');

Events

Common usage

$().on(eventName, function (e, arguments) {
  // todo
});
change.checkbox

This event fires when checked value is changed.

  • event ( Type: Object )
    • newValue ( Type: Boolean/Array )
$().on('change.checkbox', function (event) {
  console.log('newValue: ' + event.newValue);
});
click.checkbox

This event fires when checkbox item is clicked.

$().on('click.checkbox', function (e) {
  // todo
});

Callbacks

Common usage

$().datepicker({
    CallbackName: function () {
      // todo
    }
});
onChange

A shortcut of the "change.checkbox" event, this callback called when checked value is changed.

$().checkbox({
    onChange: function (event) {
      console.log('newValue: ' + event.newValue);
    }
});
onClick

A shortcut of the "click.checkbox" event, this callback called when checkbox item is clicked.

$().checkbox({
    onClick: function (event) {
      console.log('newValue: ' + event.newValue);
    }
});

Run example

Please download the project, and then enter into this directory.(download gulp-sass plugin need to connect vpn)

  • npm install
  • gulp
  • Access "http://localhost:8888/examples/index.html" in browser

Browser support

  • Chrome Most versions
  • Firefox Most versions
  • Safari Most versions
  • Opera Most versions
  • Edge Most versions
  • Internet Explorer 8+

Author

Greg Zhang from Asiainfo ([email protected]).