LittleCub Forms

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.

Example 1 :

Checkbox control with only boolean data parameter.

Native API

var checkboxControl1 = LittleCub(true, null, null, document.getElementById('checkbox-control-1'));

jQuery API

var checkboxControl1j = $('#checkbox-control-1-j').lc(true);

Example 2 :

Checkbox control with data and configs parameters.

Native API

var checkboxControl2 = LittleCub(true, {
    "type" : "checkbox"
}, null, document.getElementById('checkbox-control-2'));

jQuery API

var checkboxControl2j = $('#checkbox-control-2-j').lc(true, {
    "type" : "checkbox"
});

Example 3 :

Checkbox control with data, configs and schema parameters.

Native API

var checkboxControl3 = LittleCub(null, {
    "type" : "checkbox",
    "prompt" : "Are you a student?"
}, {
    "type" : "boolean",
    "default" : true,
    "title" : "Student"
}, document.getElementById('checkbox-control-3'));

jQuery API

var checkboxControl3j = $('#checkbox-control-3-j').lc(null, {
    "type" : "checkbox",
    "prompt" : "Are you a student?"
}, {
    "type" : "boolean",
    "default" : true,
    "title" : "Student"
});