UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

53 lines (51 loc) 1.35 kB
//#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 Object.defineProperty(exports, '__meta__', { enumerable: true, get: function () { return __meta__; } }); Object.defineProperty(exports, 'kendo_checkbox_default', { enumerable: true, get: function () { return kendo_checkbox_default; } });