extjs4 - ExtJS 4.2.1 - Cannot get View instance from the controller -


in app have viewport 1 item, main view, simple class extending ext.container.container.

i have main controller too, , i'm trying view instance, dynamically can push corresponding items if user logged or not.

i've tried using views: ['mainview'], refs[ { selector: 'thextype' }], etc no luck.

i using reference (ref) in sencha touch kind of things, can me extjs v4.2 ?

just clarification, i'm not trying dom element, i'm trying view instance associated methods.

thanks in advance,

define xtype of view:

xtype: 'mainview' 

and in controller:

requires: ['...'] // view class // ... refs: [{     ref: 'mainview',     selector: 'mainview' // xtype }] 

and can instance of view in controller this.getmainview()


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -