PDA

View Full Version : Call an event manually



GBenji
4 Apr 2012, 1:23 AM
Hi,

I wanna call MANUALLY a function which is in a controller.
And i don't find how to do that.

My ideas :
- Ext.get("controller_name").function_name();
or
- send a string to the controller corresponding to an action of this.controls (which is in the controller).

Help me please :-/

scottmartin
4 Apr 2012, 4:57 AM
Have a look at fireEvent()

Regards,
Scott.

GBenji
4 Apr 2012, 10:25 AM
Yeah I found it in the beginning of the afternoon and it works well.

Thanks for answered.