1 if(!dojo._hasResource['openils.widget.Textarea']) {
2 dojo.provide('openils.widget.Textarea');
3 dojo.require("dijit.form._FormWidget");
6 * Simple textarea that honors spaces/tabs
10 'openils.widget.Textarea', dijit.form._FormValueWidget,
14 templateString : '<textarea class="openils-widget-textarea" value="${value}" dojoAttachPoint="formValueNode,editNode,focusNode,styleNode"></textarea>',
16 constructor : function(args) {
18 this.width = args.width || openils.widget.Textarea.width;
19 this.height = args.height || openils.widget.Textarea.height;
22 postCreate : function() {
24 dojo.style(this.domNode, 'width', this.width);
26 dojo.style(this.domNode, 'height', this.height);
29 attr : function(name, val) {
32 this.domNode.value = val;
33 return this.domNode.value;
35 return this.inherited(arguments);