PDA

View Full Version : earlier than Ext.onReady



slavac
23 Mar 2011, 10:01 AM
I'm using the following code to subscribe a component to another component's event.


Ext.onReady(function () {
var designerMenu1 = Ext.ComponentMgr.get("designerMenu1");
var sDesigner1 = Ext.ComponentMgr.get("styleDesigner1");
sDesigner1.on('styleSelect', designerMenu1.onItemSelect);
}


However, I would like to use another handler for this that happens after components are initialized, but not yet rendered.
Basically I want the component firing the event to fire it right after rendering. This event would not get to the subscribed component right now because the subscription happens when all components are rendered.
Is there a Ext handler that runs earlier?