Ben Holzer
31 Jul 2012, 8:36 AM
Hi all,
I have the following button in one of my view components:
var creationButton = Ext.create('Ext.Button', {
id : 'CreationButton',
text : 'CreationButton',
handler : function(button, event) {
this.fireEvent('submitCreationButton');
},
scope : this
});
In my controller I want to suspend (queue) the events of this button and later on I like to resume the queued events.
How can I implement this? In my controller I tried:
getView().suspendEvents(true);
getView().getCreationButton().suspendEvents(true);
this.application.suspendEvents(true);
application.getController('Maincontroller').suspendEvents(true);
Nothing worked... What am I doing wrong? Could someone please, please help me out?
Thanks in advance.
I have the following button in one of my view components:
var creationButton = Ext.create('Ext.Button', {
id : 'CreationButton',
text : 'CreationButton',
handler : function(button, event) {
this.fireEvent('submitCreationButton');
},
scope : this
});
In my controller I want to suspend (queue) the events of this button and later on I like to resume the queued events.
How can I implement this? In my controller I tried:
getView().suspendEvents(true);
getView().getCreationButton().suspendEvents(true);
this.application.suspendEvents(true);
application.getController('Maincontroller').suspendEvents(true);
Nothing worked... What am I doing wrong? Could someone please, please help me out?
Thanks in advance.