Reputation: 15310
So any ExtJS component has the destroy
event to which attach listeners. What is the "inverse" of this event, i.e. an event that one can attach listeners to on component creation or initialization?
What did I try? I tried to hook into initComponent
and constructor
functions, but I'd rather have a solution that relies on event listeners.
Upvotes: 1
Views: 3572
Reputation: 3645
Ext.Component do not have this events (render, show etc only). But you can fire custom event in this methods:
...
initComponent: function() {
this.callParent(arguments);
this.fireEvent('init', {...});
}
...
Upvotes: 1