Last change
on this file since 443 was
443,
checked in by hendrikvanantwerpen, 12 years ago
|
Reorganized for Node --- the SVN gods hate us all!
Lost all historical info on moved files, because SVN is a f *.
Also we have Node now, serving both the static content and forwarding
database requests.
|
File size:
666 bytes
|
Line | |
---|
1 | define([ |
---|
2 | "../../../widgets/_ComplexValueWidget", |
---|
3 | "dojo/_base/declare", |
---|
4 | "dojo/text!./templates/TextInputWidget.html" |
---|
5 | ], function(_ComplexValueWidget, declare, template) { |
---|
6 | return declare([_ComplexValueWidget],{ |
---|
7 | text: '', |
---|
8 | maxLength: null, |
---|
9 | templateString: template, |
---|
10 | startup: function() { |
---|
11 | if ( this.maxLength ) { |
---|
12 | this.textArea.set('maxLength', this.maxLength); |
---|
13 | } |
---|
14 | }, |
---|
15 | _getValueAttr: function() { |
---|
16 | return this.textBox.get('value'); |
---|
17 | }, |
---|
18 | _setValueAttr: function(value) { |
---|
19 | return this.textBox.set('value', value); |
---|
20 | } |
---|
21 | }); |
---|
22 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.