Unanswered: Back button does not work in navigation view when items added dynamically
Unanswered: Back button does not work in navigation view when items added dynamically
When I use static item inclusion, the back button on navigation view worked.
items: [
{ xtype: 'phone-maintab' }
]
when I switched to using add items using the class method, back button stops working.
initialize: function(){
if (Ext.Viewport.getOrientation() == "landscape") {
this.orientation = 'landscape';
this.add([Ext.create('FirstApp.view.tablet.Main')]);
}
else {
// alert('portrait');
this.orientation = 'portrait';
this.add([Ext.create('FirstApp.view.tablet.TabMain')]);
}
I then added a button which calls pop(). That actually works, which means the stack is perfectly fine. So, what reasons can be there for Back button to not work?