UNPKG

dijit

Version:

Dijit provides a complete collection of user interface controls based on Dojo, giving you the power to create web applications that are highly optimized for usability, performance, internationalization, accessibility, but above all deliver an incredible u

27 lines (21 loc) 782 B
define([ "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); } }); });