1234567891011121314151617181920212223242526272829303132333435 |
- define("dojox/mobile/CheckBox", [
- "dojo/_base/declare",
- "dojo/dom-construct",
- "dijit/form/_CheckBoxMixin",
- "./ToggleButton"
- ],
- function(declare, domConstruct, CheckBoxMixin, ToggleButton){
-
- return declare("dojox.mobile.CheckBox", [ToggleButton, CheckBoxMixin], {
-
-
- baseClass: "mblCheckBox",
- _setTypeAttr: function(){},
- buildRendering: function(){
- if(!this.srcNodeRef){
-
-
- this.srcNodeRef = domConstruct.create("input", {type: this.type});
- }
- this.inherited(arguments);
- this.focusNode = this.domNode;
- },
-
- _getValueAttr: function(){
- return (this.checked ? this.value : false);
- }
- });
- });
|