Changeset 406 for Dev/branches/rest-dojo-ui/client/rft/ui/content
- Timestamp:
- 09/03/12 18:14:37 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/ui/content/ContentWidgetFactory.js
r404 r406 18 18 ],function(array, declare, lang, domConstruct, _TemplatedMixin, _WidgetBase, _Container, Button, CheckBox, NumberSpinner, RadioButton, Textarea, TextBox, TableContainer, _EditableListMixin, OrderedList) { 19 19 var factory = declare('rft.ui.content.ContentWidgetFactory', [], { 20 /* No default type, all should be valid */21 20 createViewWidget: function(/*Object*/options) { 22 21 // options: Object … … 151 150 _textBox: null, 152 151 postCreate: function() { 153 this._textBox = new TextBox(); 152 this._textBox = new TextBox({ 153 name: this.options.code || '' 154 }); 154 155 this.addChild(this._textBox); 155 156 this._textBox.startup(); … … 197 198 _textArea: null, 198 199 postCreate: function() { 199 this._textArea = new Textarea(); 200 this._textArea = new Textarea({ 201 name: this.options.code 202 }); 200 203 this._textArea.set('maxLength', this.options.maxLength || 1000); 201 204 this._textArea.set('value', this.options.defaultValue || ""); … … 256 259 postCreate: function() { 257 260 this._numberInput = new NumberSpinner({ 261 name: this.options.code || '', 258 262 constraints: { 259 263 min: this.options.min, … … 333 337 334 338 var ctor = this.options.multiple === true ? CheckBox : RadioButton; 335 array.forEach(this.options.items ,function(item){339 array.forEach(this.options.items || [],function(item){ 336 340 table.addChild(new ctor({ 341 name: this.options.code || '', 337 342 title: item 338 343 }));
Note: See TracChangeset
for help on using the changeset viewer.