Checkboxes

Snippets

	<input type="checkbox" name="name" />
	
Options
Type Value
Status locked, disabled valid, invalid, changed
Size tiny, small, default, medium, large, huge
Type Name Value
default id string
default name string
default title string
status checked checked
validation required required
callback data-callback-initialize function Triggers on initialization
callback data-callback-create function Triggers on creation
callback data-callback-update function Triggers on updating
callback data-callback-change function Triggers on changing
callback data-callback-reset function Triggers on reset
callback data-callback-validate function Triggers on validation
callback data-callback-persist function Triggers on persisting
callback data-callback-hover function Triggers on hover
callback data-callback-focus function Triggers on focus
callback data-callback-lock function Triggers on locking
callback data-callback-unlock function Triggers on unlocking
callback data-callback-disable function Triggers on disabling
callback data-callback-enable function Triggers on enabling
callback data-callback-hide function Triggers on hiding
callback data-callback-show function Triggers on showing
Methods

	// Scan checkboxes
	basekit.components.checkboxes.scan(scope);
	
Parameters Value
scope null element

	// Initialize checkboxes
	basekit.components.checkboxes.initialize(scope);
	
Parameters Value
scope null container checkbox(es)

	// Create checkbox
	basekit.components.checkboxes.create(id,name,value,title,options,callback);
	
Parameters Value
id string
name string
value bool
title string
options 'locked', 'disabled'
callback function

	// Update checkboxes
	basekit.components.checkboxes.update(scope,id,name,value,title,options);
	
Parameters Value
scope checkbox(es)
id string
name string
value bool
title string
options 'locked', 'disabled'

	// Cancel active checkbox
	basekit.components.checkboxes.cancel();
	
Parameters Value
- -

	// Set scope
	var scope= $('input[type="checkbox"]');

	// Reset checkboxes
	basekit.components.checkboxes.reset(scope);
	
Parameters Value
scope null checkbox(es)

	// Set scope
	var scope= $('input[type="checkbox"]');

	// Validate checkboxes
	basekit.components.checkboxes.validate(scope);
	
Parameters Value
scope null checkbox(es)

	// Set scope
	var scope= $('input[type="checkbox"]');

	// Persist checkboxes
	basekit.components.checkboxes.persist(scope);
	
Parameters Value
scope null checkbox(es)

	// Set scope
	var scope= $('input[type="checkbox"]');

	// Lock checkboxes
	basekit.components.checkboxes.lock(scope);
	
Parameters Value
scope null checkbox(es)

	// Set scope
	var scope= $('input[type="checkbox"]');

	// Unlock checkboxes
	basekit.components.checkboxes.unlock(scope);
	
Parameters Value
scope null checkbox(es)

	// Set scope
	var scope= $('input[type="checkbox"]');

	// Disable checkboxes
	basekit.components.checkboxes.disable(scope);
	
Parameters Value
scope null checkbox(s)

	// Set scope
	var scope= $('input[type="checkbox"]');

	// Enable checkboxes
	basekit.components.checkboxes.enable(scope);
	
Parameters Value
scope null checkbox(s)
States
default
disabled
Sizes
tiny
small
default
medium
large
huge
xs-xxx
sm-xxx
md-xxx
lg-xxx