Did you mean that when you press the button (or the back button), it should bounce, say, 2-3 views, and not just one view?
Example: moving viewed objects ::
1 β 2 β 3 β 4 β 5 (set some condition X) β 6 β (now using the return button) β 5 β 4 β 2 (since 3 has already disappeared due to condition X) β 1.
If this is what you mean, then you can extend the functionality of the back button in the controller by listening to the "back" event in navView. Then, as soon as you receive the event, you can check the number of elements in the navigation view and accordingly decide whether to place either 1 or 2 or 3 events, so jump back to 1-2-3, etc. For the user, it would look as if you had reached view 5, you would see a navigation screen (in the example above) 3.
The code is as follows:
back : function(){ if(condition=="X"){
How do you know which view is being deactivated (so that you only display 3 views (say) after you leave view 5, and not while you
source share