Light-Weight, High-Performance & Easily Customizable
Control with a single checkbox and as the default control mapped to boolean
data type.
List of supported JSON schema keywords.
List of supported LittleCub config options.
Checkbox control with only boolean data parameter.
var checkboxControl1 = LittleCub(true, null, null, document.getElementById('checkbox-control-1'));
var checkboxControl1j = $('#checkbox-control-1-j').lc(true);
Checkbox control with data and configs parameters.
var checkboxControl2 = LittleCub(true, {
"type" : "checkbox"
}, null, document.getElementById('checkbox-control-2'));
var checkboxControl2j = $('#checkbox-control-2-j').lc(true, {
"type" : "checkbox"
});
Checkbox control with data, configs and schema parameters.
var checkboxControl3 = LittleCub(null, {
"type" : "checkbox",
"prompt" : "Are you a student?"
}, {
"type" : "boolean",
"default" : true,
"title" : "Student"
}, document.getElementById('checkbox-control-3'));
var checkboxControl3j = $('#checkbox-control-3-j').lc(null, {
"type" : "checkbox",
"prompt" : "Are you a student?"
}, {
"type" : "boolean",
"default" : true,
"title" : "Student"
});