
Tabs and Accordions
Sometimes you
have more content than you can reasonably fit
on the screen, so you need some way to let the user navigate
around groupings of content. Flex provides several solutions,
two of which, tabs and accordions, I’ll demonstrate here.
Tabs are very easy to create, as you can see in Example 4-14.
Example 4-14. Tabs.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical">
<mx:TabNavigator borderStyle="solid" width="100%"
height="100%">
<mx:VBox label="Tab One">
<mx:Label text="Tab one's content" />
</mx:VBox>
<mx:VBox label="Tab Two">
<mx:Label text="Tab two's content" />
</mx:VBox>
Figure 4-13. The editable grid
Tabs and Accordions | 55
Commenti su questo manuale