Reputation: 583
Is there any way to prevent the default back button behavior in the navigation bar of a navigationview?
I'm trying to use Sencha Touch 2 history and linking abilities with routers, but that requires me to essentially intercept all button taps so that I can update the url.
The back button in a navigation bar creates all kinds of nightmares as far as thats concerned, and I can supply code if someone thinks they have an alternate solution, but preventing the default back button behavior seems best (so as to play nice with browser back button)
Upvotes: 3
Views: 2889
Reputation: 4952
try this Ext.getCmp('navigationview's id').getNavigatorBar().hide()
Upvotes: 0
Reputation: 14827
If you want to handle back button you can use back event
of navigation view
which fired when the back button of the navigation view was tapped.. Refer to my previous answer on how to do it.
If you want to completely hide the back button just simply use:
Ext.select('.x-button-back').hide();
Upvotes: 4