O'Reilly logo

Ext JS 4 Web Application Development Cookbook by Stuart Ashworth, Andrew Duncan

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

Displaying stacked components with CardLayouts

Ext JS gives us the ability to stack components on top of one another allowing us to only show a single item at once and have the option to switch between them as we wish. There are several possible use cases for this type of layout, for example, a wizard style form, a content carousel, or a tabbed layout.

The Ext.tab.TabPanel component is in fact based on the card layout and uses it to manage the tabs' layout.

In this recipe, we will demonstrate how to use the Ext.layout.container.Card layout manager to create a simple account creation wizard as shown in the following screenshot:

Displaying stacked components with CardLayouts

How to do it...

  1. We start ...

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