MACROMEDIA FLEX-GETTING STARTED WITH FLEX Manuale Utente Pagina 71

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 148
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 ... 147 148

Commenti su questo manuale

Nessun commento