1 if(!dojo._hasResource["dijit.form.SimpleTextarea"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
2 dojo._hasResource["dijit.form.SimpleTextarea"] = true;
3 dojo.provide("dijit.form.SimpleTextarea");
5 dojo.require("dijit.form._FormWidget");
7 dojo.declare("dijit.form.SimpleTextarea",
8 dijit.form._FormValueWidget,
11 // A simple textarea that degrades, and responds to
12 // minimal LayoutContainer usage, and works with dijit.form.Form.
13 // Doesn't automatically size according to input, like Textarea.
16 // | <textarea dojoType="dijit.form.SimpleTextarea" name="foo" value="bar" rows=30 cols=40/>
19 baseClass: "dijitTextArea",
21 attributeMap: dojo.mixin(dojo.clone(dijit.form._FormValueWidget.prototype.attributeMap),
22 {rows:"focusNode", cols: "focusNode"}),
25 // The number of rows of text.
29 // The number of characters per line.
32 templateString: "<textarea name='${name}' dojoAttachPoint='focusNode,containerNode'>",
34 postMixInProperties: function(){
36 this.value = this.srcNodeRef.value;
40 setValue: function(/*String*/ val){
41 this.domNode.value = val;
42 this.inherited(arguments);
46 return this.domNode.value.replace(/\r/g,"");