dimanche 13 avril 2014

Calling Views

Hi All,

I'm new to ExtJS.

In my application I do have 3 views. I'm changing the Views to a Viewport

using the following lines of code.


Ext.getCmp('myViewport').removeAll();

Ext.getCmp('myViewport').add(Ext.create('MyProject.view.Dashboard'));

Ext.getCmp('myViewport').doLayout();


Is this the actual way of displaying view to a Viewport?

Also I'm confused if the last line of code[Ext.getCmp('myViewport').doLayout();] is actually required?


Please help.





Aucun commentaire:

Enregistrer un commentaire