Skip to content

sudo-barun/tristate-checkbox-group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

  1. Include dist/index.js (or index.min.js)
  2. Run $.tristateCheckboxGroup()

Example

let master = $('input.chk-master');
let children = $();
$.tristateCheckboxGroup({
	'checkbox': {}, // checkbox DOM object
	'child': [{
		'checkbox': {},
		'child': [],
	}],
});

See the test.html for example.

Data Format

The data is a tree structure. Every element is of following structure:

{
	'checkbox': {}, // checkbox DOM object
	'child': [],
}

Dependencies

  1. jQuery

Development

  1. Run npm install to install all dependencies
  2. Make changes to the file in src folder
  3. Run build command
  4. Open dist/test.html in browser

Build

Generate the files in dist folder.

npm run build

Watch

Runs build as changes is made in files of src folder.

npm run watch

More

See package.json for available scripts

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published