1234567891011121314151617181920212223242526272829303132333435363738394041 |
- define("dojox/mobile/TextBox", [
- "dojo/_base/declare",
- "dojo/dom-construct",
- "dijit/_WidgetBase",
- "dijit/form/_FormValueMixin",
- "dijit/form/_TextBoxMixin"
- ], function(declare, domConstruct, WidgetBase, FormValueMixin, TextBoxMixin){
-
- return declare("dojox.mobile.TextBox",[WidgetBase, FormValueMixin, TextBoxMixin],{
-
-
- baseClass: "mblTextBox",
-
-
- _setTypeAttr: null,
-
- _setPlaceHolderAttr: "textbox",
- buildRendering: function(){
- if(!this.srcNodeRef){
- this.srcNodeRef = domConstruct.create("input", {"type":this.type});
- }
- this.inherited(arguments);
- this.textbox = this.focusNode = this.domNode;
- },
- postCreate: function(){
- this.inherited(arguments);
- this.connect(this.textbox, "onfocus", "_onFocus");
- this.connect(this.textbox, "onblur", "_onBlur");
- }
- });
- });
|