Hi,
I'm using navigation view in my project as my main menu. I'm creating views in my navigation view controller and push those to navigation view.
Thanks in advance
Navigation view check loaded
I'm using navigation view in my project as my main menu. I'm creating views in my navigation view controller and push those to navigation view.
In my main menu when I go to home or any other view second time it gave an error. "already have home instance" like error. So, I destroy view when leaving it.(navigationView.getActiveItem.destroy();) Now it works well. But slow. Because it loading each and every time.
So, I need something like this.
Code:
if(navigationView.getHomeViewLoaded){
navigationView.push(HomeView);
}
else{
Ext.create('app.view.HomeView');
}
Thanks in advance
Navigation view check loaded
Aucun commentaire:
Enregistrer un commentaire