Sencha Premium Member
NavigationView override Back event
I am using a NaviationView and wanted to know how I can intercept the back event and abort it. I have a form that a user fills in. If they click the back button on the Navigation View I want to prompt the user that changes will be lost if they do not save and allow then to continue back (losing changes) or abort the back event leaving them on the current view.
I was able to do this by creating a toolbar to mimic the NavigationView with it's own back button, and hide the real NavigationView toolbar, but this seems like a bad hack.
Any better ideas.
Tags for this Thread