Sha256: 9f340a6b285a09a2ae58f2ee9c1563ef6f0aa2cf5f5a6720c54c844dcc213f52
Contents?: true
Size: 740 Bytes
Versions: 1
Compression:
Stored size: 740 Bytes
Contents
define("dojox/mobile/ToggleButton", [ "dojo/_base/declare", "dojo/dom-class", "dijit/form/_ToggleButtonMixin", "./Button" ], function(declare, domClass, ToggleButtonMixin, Button){ return declare("dojox.mobile.ToggleButton", [Button, ToggleButtonMixin], { // summary: // A non-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: "mblToggleButton", _setCheckedAttr: function(){ this.inherited(arguments); var newStateClasses = (this.baseClass+' '+this["class"]).replace(/(\S+)\s*/g, "$1Checked ").split(" "); domClass[this.checked ? "add" : "remove"](this.focusNode || this.domNode, newStateClasses); } }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dojox-rails-0.11.0 | vendor/assets/javascripts/mobile/ToggleButton.js.uncompressed.js |