1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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);
}
});
});
|