dragGroup: ddGroup,
dropGroup: ddGroup,
flex: 1,
- hideLabel: true
+ hideLabel: true,
+ disabled: me.disabled
},
fromConfig = Ext.apply({
listTitle: 'Available',
});
}
},
+
+ onDisable: function(){
+ this.callParent();
+ var fromField = this.fromField;
+
+ // if we have one, we have both, they get created at the same time
+ if (fromField) {
+ fromField.disable();
+ this.toField.disable();
+ }
+ },
+
+ onEnable: function(){
+ this.callParent();
+ var fromField = this.fromField;
+
+ // if we have one, we have both, they get created at the same time
+ if (fromField) {
+ fromField.enable();
+ this.toField.enable();
+ }
+ },
onDestroy: function() {
Ext.destroyMembers(this, 'innerCt');