- Timestamp:
- 03/12/14 02:23:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/model/widgets/questions/TextInputWidget.js
r461 r508 1 1 define([ 2 "../../../widgets/_ComplexValueWidget", 2 "dijit/_Container", 3 "dijit/_TemplatedMixin", 4 "dijit/_WidgetBase", 5 "dijit/_WidgetsInTemplateMixin", 3 6 "dojo/_base/declare", 4 7 "dojo/text!./templates/TextInputWidget.html" 5 ], function(_ComplexValueWidget, declare, template) { 6 return declare([_ComplexValueWidget],{ 8 ], function(_Container, _TemplatedMixin, _WidgetBase, _WidgetsInTemplateMixin, declare, template) { 9 return declare([_WidgetBase,_TemplatedMixin,_WidgetsInTemplateMixin,_Container],{ 10 templateString: template, 7 11 text: '', 8 maxLength: null,9 templateString: template,10 12 startup: function() { 13 if ( this._started ) { return; } 14 this.inherited(arguments); 15 11 16 if ( this.maxLength ) { 12 17 this.textArea.set('maxLength', this.maxLength); 13 18 } 14 },15 _getValueAttr: function() {16 return this.textArea.get('value');17 },18 _setValueAttr: function(value) {19 return this.textArea.set('value', value);20 19 } 21 20 });
Note: See TracChangeset
for help on using the changeset viewer.