I needed help with launching a new page from one. I am launching the first page by using the Ext.application method
var cmpSearchViewport = Ext.create('MyApp.view.SearchViewport', {
renderTo: Ext.getBody()
});
cmpSearchViewport.show();
On click of a button on this page the new viewport should be launched. I added this to the button listener.\
var cmp1 = Ext.create('MyApp.view.MyViewport', {
renderTo: Ext.getBody()
});
cmp1.show();
But it is not displayed properly and the first page is still showing up. Please let me know how to solve this.
ViewPort is designed to display using the entire browser client window. If you have other content on the browser body, you may want to use a panel. Is this case?