In the Building wizards using CardLayout recipe, we saw how we can implement view navigation by adding items to a container with
CardLayout and using the
setActiveItem method to switch between the views. This is very handy when we have to implement a workflow, which consists of multiple steps and user switches between the previous or next view to complete the workflow. But all that was manual. Sencha Touch framework offers the new
NavigationView class, which combines a container with a
card layout and allows us to go back to the previous view by offering a default Back button. Using its
push method, we push a new view to it and the
NavigationView class automatically shows it as the active item. ...