MACROMEDIA FLEX-GETTING STARTED WITH FLEX Manuel d'utilisateur Page 71

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 148
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 70
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
Vue de la page 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 ... 147 148

Commentaires sur ces manuels

Pas de commentaire