The Tab panel is a popular UI component which can hold other components and that can be accessed in a tabbed fashion using a tab bar. In this recipe, we will learn about the tab panel and the different options that we may use to build our application.
Make sure that you have set up your development environment by following the recipes outlined in Chapter 1.
Create and open a new file named
ch06_10.js
and paste the following code in it:Ext.setup({ onReady: function() { new Ext.TabPanel({ fullscreen: true, ui : 'light', sortable : true, items: [ { title: 'Album', html: 'Contains the photos!', cls: 'tab1' }, { title: 'Help', html: '<h1 style="font-size:16px;"><b>Help</b></h1><p>This application shows the album of flower pictures. You can filter the flowers based on their category, e.g. Rose, and view the additional detail...