Skip to main content

Posts

EXTJS - How to observe all the events on a view

How to observe all the events on a view Here's how to observe all of the events on a view: var view = Ext.create('My.view.SomeView'); Ext.util.Observable.capture(view, function(){ console.log(arguments); }); This will show output in the console window whenever an event happens to the view, such as render. A useful debugging tool.

ExtJS - View Controller Event Listening

Right now, you fall into one of two groups: those that have Ext 5 and those that do not. Well, I hope you all get into the first group and get to experience the awesome that is Ext 5. I’m super excited about Ext 5 and all the new features and docs it has. Today I want to talk about one of the new features which is to the MVC implementation. When Ext 4 was released, among one of the major updates to the long standing framework was an MVC implementation. This implementation worked quite well but some were left wanting more. One issue I heard a lot was confusion on the controller, in fact I saw countless people making a single controller per view which in the Ext 4 MVC implementation wasn’t really how it was meant to work. The controllers were really global controllers that can handle any number of different views and their instances; I usually had one controller per feature. I will admit, I deployed this MVC implementation quite successfully and enjoyed developing Ext 4 applications ...