@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
63 lines (50 loc) • 1.63 kB
JavaScript
Object.defineProperty(exports, '__esModule', { value: true });
require('./kendo.toggleinputbase.js');
require('./kendo.html.input.js');
require('./kendo.core.js');
require('./kendo.licensing.js');
require('@progress/kendo-licensing');
require('./kendo.html.base.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$1) {
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: "medium",
size: "medium",
wrapperClass: "k-checkbox-wrap"
},
RENDER_INPUT: kendo.html.renderCheckBox,
NS: ".kendoCheckBox",
// alias for check, NG support
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$1 = kendo;
exports.__meta__ = __meta__;
exports.default = kendo$1;
;