1

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.

1 Answer 1

1

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', {...});
}
...
Sign up to request clarification or add additional context in comments.

1 Comment

This seems to be missed unfortunately by a controller's control() or listen() in extjs 4.2.3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.