a:19:{s:9:"#provides";s:25:"dijit.form.SimpleTextarea";s:9:"#resource";s:22:"form/SimpleTextarea.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:18:"dijit.form.TextBox";}}s:25:"dijit.form.SimpleTextarea";a:5:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:18:"dijit.form.TextBox";}s:4:"call";a:1:{i:0;s:18:"dijit.form.TextBox";}}s:7:"summary";s:173:"A simple textarea that degrades, and responds to
minimal LayoutContainer usage, and works with dijit.form.Form.
Doesn't automatically size according to input, like Textarea.";s:8:"examples";a:2:{i:0;s:100:"
";i:1;s:62:"
new dijit.form.SimpleTextarea({ rows:20, cols:30 }, "foo");";}s:9:"classlike";b:1;}s:35:"dijit.form.SimpleTextarea.baseClass";a:2:{s:9:"prototype";s:25:"dijit.form.SimpleTextarea";s:7:"summary";s:0:"";}s:38:"dijit.form.SimpleTextarea.attributeMap";a:2:{s:9:"prototype";s:25:"dijit.form.SimpleTextarea";s:7:"summary";s:0:"";}s:30:"dijit.form.SimpleTextarea.rows";a:3:{s:9:"prototype";s:25:"dijit.form.SimpleTextarea";s:4:"type";s:6:"Number";s:7:"summary";s:34:"The number of characters per line.";}s:30:"dijit.form.SimpleTextarea.cols";a:2:{s:9:"prototype";s:25:"dijit.form.SimpleTextarea";s:7:"summary";s:0:"";}s:38:"dijit.form.SimpleTextarea.templatePath";a:2:{s:9:"prototype";s:25:"dijit.form.SimpleTextarea";s:7:"summary";s:0:"";}s:40:"dijit.form.SimpleTextarea.templateString";a:2:{s:9:"prototype";s:25:"dijit.form.SimpleTextarea";s:7:"summary";s:0:"";}s:45:"dijit.form.SimpleTextarea.postMixInProperties";a:4:{s:9:"prototype";s:25:"dijit.form.SimpleTextarea";s:4:"type";s:8:"Function";s:6:"source";s:1247:"dojo.provide("dijit.form.SimpleTextarea");
dojo.require("dijit.form.TextBox");
dojo.declare("dijit.form.SimpleTextarea",
dijit.form.TextBox,
{
// summary:
// A simple textarea that degrades, and responds to
// minimal LayoutContainer usage, and works with dijit.form.Form.
// Doesn't automatically size according to input, like Textarea.
//
// example:
// |
//
// example:
// | new dijit.form.SimpleTextarea({ rows:20, cols:30 }, "foo");
baseClass: "dijitTextArea",
attributeMap: dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap, {
rows:"textbox", cols: "textbox"
}),
// rows: Number
// The number of rows of text.
rows: "3",
// rows: Number
// The number of characters per line.
cols: "20",
templatePath: null,
templateString: "",
postMixInProperties: function(){
// Copy value from srcNodeRef, unless user specified a value explicitly (or there is no srcNodeRef)
if(!this.value && this.srcNodeRef){
this.value = this.srcNodeRef.value;
}
this.inherited(arguments);";s:7:"summary";s:0:"";}s:32:"dijit.form.SimpleTextarea.filter";a:5:{s:9:"prototype";s:25:"dijit.form.SimpleTextarea";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"value";a:1:{s:4:"type";s:6:"String";}}s:6:"source";s:1522:"dojo.provide("dijit.form.SimpleTextarea");
dojo.require("dijit.form.TextBox");
dojo.declare("dijit.form.SimpleTextarea",
dijit.form.TextBox,
{
// summary:
// A simple textarea that degrades, and responds to
// minimal LayoutContainer usage, and works with dijit.form.Form.
// Doesn't automatically size according to input, like Textarea.
//
// example:
// |
//
// example:
// | new dijit.form.SimpleTextarea({ rows:20, cols:30 }, "foo");
baseClass: "dijitTextArea",
attributeMap: dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap, {
rows:"textbox", cols: "textbox"
}),
// rows: Number
// The number of rows of text.
rows: "3",
// rows: Number
// The number of characters per line.
cols: "20",
templatePath: null,
templateString: "",
postMixInProperties: function(){
// Copy value from srcNodeRef, unless user specified a value explicitly (or there is no srcNodeRef)
if(!this.value && this.srcNodeRef){
this.value = this.srcNodeRef.value;
}
this.inherited(arguments);
},
filter: function(/*String*/ value){
// Override TextBox.filter to deal with newlines... specifically (IIRC) this is for IE which writes newlines
// as \r\n instead of just \n
if(value){
value = value.replace(/\r/g,"");
}
return this.inherited(arguments);";s:7:"summary";s:0:"";}s:36:"dijit.form.SimpleTextarea.postCreate";a:4:{s:9:"prototype";s:25:"dijit.form.SimpleTextarea";s:4:"type";s:8:"Function";s:6:"source";s:162:" this.inherited(arguments);
if(dojo.isIE && this.cols){ // attribute selectors is not supported in IE6
dojo.addClass(this.domNode, "dijitTextAreaCols");
}";s:7:"summary";s:0:"";}s:40:"dijit.form.SimpleTextarea._previousValue";a:4:{s:9:"prototype";s:25:"dijit.form.SimpleTextarea";s:8:"instance";s:25:"dijit.form.SimpleTextarea";s:7:"private";b:1;s:7:"summary";s:0:"";}s:34:"dijit.form.SimpleTextarea._onInput";a:6:{s:9:"prototype";s:25:"dijit.form.SimpleTextarea";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"e";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:2761:"dojo.provide("dijit.form.SimpleTextarea");
dojo.require("dijit.form.TextBox");
dojo.declare("dijit.form.SimpleTextarea",
dijit.form.TextBox,
{
// summary:
// A simple textarea that degrades, and responds to
// minimal LayoutContainer usage, and works with dijit.form.Form.
// Doesn't automatically size according to input, like Textarea.
//
// example:
// |
//
// example:
// | new dijit.form.SimpleTextarea({ rows:20, cols:30 }, "foo");
baseClass: "dijitTextArea",
attributeMap: dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap, {
rows:"textbox", cols: "textbox"
}),
// rows: Number
// The number of rows of text.
rows: "3",
// rows: Number
// The number of characters per line.
cols: "20",
templatePath: null,
templateString: "",
postMixInProperties: function(){
// Copy value from srcNodeRef, unless user specified a value explicitly (or there is no srcNodeRef)
if(!this.value && this.srcNodeRef){
this.value = this.srcNodeRef.value;
}
this.inherited(arguments);
},
filter: function(/*String*/ value){
// Override TextBox.filter to deal with newlines... specifically (IIRC) this is for IE which writes newlines
// as \r\n instead of just \n
if(value){
value = value.replace(/\r/g,"");
}
return this.inherited(arguments);
},
postCreate: function(){
this.inherited(arguments);
if(dojo.isIE && this.cols){ // attribute selectors is not supported in IE6
dojo.addClass(this.domNode, "dijitTextAreaCols");
}
},
_previousValue: "",
_onInput: function(e){
// Override TextBox._onInput() to enforce maxLength restriction
if(this.maxLength){
var maxLength = parseInt(this.maxLength);
var value = this.textbox.value.replace(/\r/g,'');
var overflow = value.length - maxLength;
if(overflow > 0){
dojo.stopEvent(e);
var textarea = this.textbox;
if(textarea.selectionStart){
var pos = textarea.selectionStart;
var cr = 0;
if(dojo.isOpera){
cr = (this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;
}
this.textbox.value = value.substring(0,pos-overflow-cr)+value.substring(pos-cr);
textarea.setSelectionRange(pos-overflow, pos-overflow);
}else if(dojo.doc.selection){ //IE
textarea.focus();
var range = dojo.doc.selection.createRange();
// delete overflow characters
range.moveStart("character", -overflow);
range.text = '';
// show cursor
range.select();
}
}
this._previousValue = this.textbox.value;
}
this.inherited(arguments);";s:7:"private";b:1;s:7:"summary";s:0:"";}s:31:"dijit.form.SimpleTextarea.value";a:2:{s:8:"instance";s:25:"dijit.form.SimpleTextarea";s:7:"summary";s:0:"";}s:39:"dijit.form.SimpleTextarea.textbox.value";a:2:{s:8:"instance";s:25:"dijit.form.SimpleTextarea";s:7:"summary";s:0:"";}s:10:"dijit.form";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dijit";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}