Last change
on this file since 256 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
976 bytes
|
Line | |
---|
1 | define([ |
---|
2 | "dojo/_base/declare", // declare |
---|
3 | "dojo/_base/kernel", // kernel.deprecated |
---|
4 | "./Button", |
---|
5 | "./_ToggleButtonMixin" |
---|
6 | ], function(declare, kernel, Button, _ToggleButtonMixin){ |
---|
7 | |
---|
8 | /*===== |
---|
9 | var Button = dijit.form.Button; |
---|
10 | var _ToggleButtonMixin = dijit.form._ToggleButtonMixin; |
---|
11 | =====*/ |
---|
12 | |
---|
13 | // module: |
---|
14 | // dijit/form/ToggleButton |
---|
15 | // summary: |
---|
16 | // A templated button widget that can be in two states (checked or not). |
---|
17 | |
---|
18 | |
---|
19 | return declare("dijit.form.ToggleButton", [Button, _ToggleButtonMixin], { |
---|
20 | // summary: |
---|
21 | // A templated button widget that can be in two states (checked or not). |
---|
22 | // Can be base class for things like tabs or checkbox or radio buttons |
---|
23 | |
---|
24 | baseClass: "dijitToggleButton", |
---|
25 | |
---|
26 | setChecked: function(/*Boolean*/ checked){ |
---|
27 | // summary: |
---|
28 | // Deprecated. Use set('checked', true/false) instead. |
---|
29 | kernel.deprecated("setChecked("+checked+") is deprecated. Use set('checked',"+checked+") instead.", "", "2.0"); |
---|
30 | this.set('checked', checked); |
---|
31 | } |
---|
32 | }); |
---|
33 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.