diff options
| author | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
|---|---|---|
| committer | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
| commit | b62676ca5d3d6f6ba3f019ea3f99722e165a98d8 (patch) | |
| tree | 86722cb80f07d4569f90088eeaea2fc2f6e2ef94 /js/dojo-1.7.2/dojox/mobile/TextArea.js | |
Diffstat (limited to 'js/dojo-1.7.2/dojox/mobile/TextArea.js')
| -rw-r--r-- | js/dojo-1.7.2/dojox/mobile/TextArea.js | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/js/dojo-1.7.2/dojox/mobile/TextArea.js b/js/dojo-1.7.2/dojox/mobile/TextArea.js new file mode 100644 index 0000000..4220fb9 --- /dev/null +++ b/js/dojo-1.7.2/dojox/mobile/TextArea.js @@ -0,0 +1,40 @@ +//>>built +define("dojox/mobile/TextArea", [ + "dojo/_base/declare", + "dojo/dom-construct", + "./TextBox" +], function(declare, domConstruct, TextBox){ + + /*===== + TextBox = dojox.mobile.TextBox; + =====*/ + return declare("dojox.mobile.TextArea",TextBox, { + // summary: + // Non-templated TEXTAREA widget. + // + // description: + // A textarea widget that wraps an HTML TEXTAREA element. + // Takes all the parameters (name, value, etc.) that a vanilla textarea takes. + // + // example: + // | <textarea dojoType="dojox.mobile.TextArea">...</textarea> + + baseClass: "mblTextArea", + + postMixInProperties: function(){ + // Copy value from srcNodeRef, unless user specified a value explicitly (or there is no srcNodeRef) + // TODO: parser will handle this in 2.0 + if(!this.value && this.srcNodeRef){ + this.value = this.srcNodeRef.value; + } + this.inherited(arguments); + }, + + buildRendering: function(){ + if(!this.srcNodeRef){ + this.srcNodeRef = domConstruct.create("textarea", {}); + } + this.inherited(arguments); + } + }); +}); |
