You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
809 B
JavaScript
27 lines
809 B
JavaScript
12 years ago
|
define("dijit/form/ToggleButton", [
|
||
|
"dojo/_base/declare", // declare
|
||
|
"dojo/_base/kernel", // kernel.deprecated
|
||
|
"./Button",
|
||
|
"./_ToggleButtonMixin"
|
||
|
], function(declare, kernel, Button, _ToggleButtonMixin){
|
||
|
|
||
|
// module:
|
||
|
// dijit/form/ToggleButton
|
||
|
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
});
|
||
|
});
|