@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
41 lines (40 loc) • 1.15 kB
JavaScript
//#region ../src/kendo.checkbox.js
const __meta__ = {
id: "checkbox",
name: "CheckBox",
category: "web",
description: "The CheckBox widget is used to display boolean value input.",
depends: ["toggleinputbase", "html.input"]
};
(function($, undefined) {
var kendo = window.kendo, ui = kendo.ui, ToggleInputBase = ui.ToggleInputBase;
var CheckBox = ToggleInputBase.extend({
options: {
name: "CheckBox",
checked: null,
enabled: true,
encoded: true,
label: null,
rounded: undefined,
size: undefined,
wrapperClass: "k-checkbox-wrap"
},
RENDER_INPUT: kendo.html.renderCheckBox,
NS: ".kendoCheckBox",
value: function(value) {
if (typeof value === "string") {
value = value === "true";
}
return this.check.apply(this, [value]);
}
});
kendo.cssProperties.registerPrefix("CheckBox", "k-checkbox-");
kendo.cssProperties.registerValues("CheckBox", [{
prop: "rounded",
values: kendo.cssProperties.roundedValues.concat([["full", "full"]])
}]);
ui.plugin(CheckBox);
})(window.kendo.jQuery);
var kendo_checkbox_default = kendo;
//#endregion
export { kendo_checkbox_default as n, __meta__ as t };