webui-aria2/js/libs/dijit/form/ToggleButton.js.uncompressed.js
2012-05-01 19:52:07 +08:00

35 lines
1013 B
JavaScript

//>>built
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);
}
});
});