Morteza Malvandi
Morteza Malvandi

Reputation: 1724

How add custom event in extjs 6?

I'm usign Extjs 6. I extended a class from Ext.Component. I want to add the class some events.

How can I do it?

Upvotes: 1

Views: 1558

Answers (1)

Robert Watkins
Robert Watkins

Reputation: 2206

You don't have to declare custom events in ExtJS 6. You simply need to listen to them and fire them.

component.fireEvent("customEvent", component, otherArgs);

Upvotes: 2

Related Questions