Light-Weight, High-Performance & Easily Customizable
Control for single-line text and as the default control mapped to string data type.
List of supported JSON schema keywords.
List of supported LittleCub config options.
Password control with data and configs parameters.
var textControl2 = LittleCub("Sample2", {
"type" : "text",
"size" : 60
}, null,document.getElementById('text-control-2'));
var textControl2j = $('#text-control-2-j').lc("Sample2 with jQuery", {
"type" : "text",
"size" : 60
});
Password control with data, configs and schema parameters.
var textControl3 = LittleCub("Sample3", {
"type" : "text",
"size" : 60
}, {
"type" : "string",
"minLength" : 10
},document.getElementById('text-control-3'));
var textControl3j = $('#text-control-3-j').lc("Sample3 with jQuery", {
"type" : "password",
"size" : 60
}, {
"type" : "string",
"minLength" : 10
});
Password control with configs and schema parameters that have various options.
var textControl4 = LittleCub("", {
"type" : "password",
"size" : 60,
"label" : "Sample 4",
"helper" : "Enter your password",
"placeholder" : "Sample Password",
"required" : true,
"validationEvent" : "keyup"
}, {
"type" : "string",
"title" : "Sample",
"description" : "Enter password",
"minLength" : 10,
"maxLength" : 30
},document.getElementById('text-control-4')).validate();
var textControl4j = $('#text-control-4-j').lc("", {
"type" : "password",
"size" : 60,
"label" : "Sample 4",
"helper" : "Enter your password",
"placeholder" : "Sample Password",
"required" : true,
"validationEvent" : "keyup",
"name" : "sample"
}, {
"type" : "string",
"title" : "Sample",
"description" : "Enter password",
"minLength" : 10,
"maxLength" : 30
}).validate();