O'Reilly logo

Sencha Touch Cookbook - Second Edition by Ajit Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Easing view navigation with the NavigationView class

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required