An easy way to get a reference to the viewport from any controller
Here's an easy way to get a reference to your viewport from any controller:
to get a reference to the viewport.
Ext.application({ launch: function(){ this.viewport = Ext.ComponentQuery.query('viewport')[0]; this.centerRegion = this.viewport.down('[region=center]'); } });then, inside say, a controller, you can call this:
this.application.viewport
to get a reference to the viewport.
Thank you, allthough I am an ExtJS developer for many years, this helped me very much. Some things you don't do that often, so this was very helpful. Thank you.
ReplyDeleteHi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from javascript and jquery training in chennai . or learn thru Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry. javascript and jquery training in chennai
ReplyDeleteNexinqui-ro Kelly Campos https://wakelet.com/wake/sJIEuBC45ZiLXoI0fTLNX
ReplyDeleteulmicootu
confscontimiFargo Scott Moser R-Studio
ReplyDeleteKaspersky Total Security
WiFi Analyzer
printalfethe