tt-rss/lib/dijit/form/ToggleButton.js.uncompressed.js
2012-08-14 18:59:18 +04:00

33 lines
1,003 B
JavaScript

define("dijit/form/ToggleButton", [
"dojo/_base/declare", // declare
"dojo/_base/kernel", // kernel.deprecated
"./Button",
"./_ToggleButtonMixin"
], function(declare, kernel, Button, _ToggleButtonMixin){
/*=====
var Button = dijit.form.Button;
var _ToggleButtonMixin = dijit.form._ToggleButtonMixin;
=====*/
// module:
// dijit/form/ToggleButton
// summary:
// A templated button widget that can be in two states (checked or not).
return declare("dijit.form.ToggleButton", [Button, _ToggleButtonMixin], {
// summary:
// A templated button widget that can be in two states (checked or not).
// Can be base class for things like tabs or checkbox or radio buttons
baseClass: "dijitToggleButton",
setChecked: function(/*Boolean*/ checked){
// summary:
// Deprecated. Use set('checked', true/false) instead.
kernel.deprecated("setChecked("+checked+") is deprecated. Use set('checked',"+checked+") instead.", "", "2.0");
this.set('checked', checked);
}
});
});