Changeset 442 for Dev/trunk/client/qed/widgets/ListWidget.js
- Timestamp:
- 05/02/13 13:13:13 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/client/qed/widgets/ListWidget.js
r441 r442 90 90 _setValueAttr: function(value) { 91 91 this.clear(); 92 this.appendItems(value); 92 this.appendItems(value || []); 93 }, 94 _setDisabledAttr: function(value) { 95 this._set("disabled", value); 96 array.forEach(this.getChildren(), function(child){ 97 child.set("disabled", value); 98 }); 99 }, 100 _setReadOnlyAttr: function(value) { 101 this._set("readOnly", value); 102 array.forEach(this.getChildren(), function(child){ 103 child.set("readOnly", value); 104 }); 105 }, 106 focus: function() { 107 var children = this.getChildren(); 108 if ( children.length > 0 ) { 109 children[0].focus(); 110 } 93 111 }, 94 112 appendItems: function(items) {
Note: See TracChangeset
for help on using the changeset viewer.