XUL Programmer's Reference Manual

<tabpanel>

Attributes Common Children
align <box>
class <titledbutton>
id  
flex  
orient  
autostretch  
oncommand  

<tabpanel> contains the tabbed views accessible from the different tabs. Like many of the other tab widgets, tabpanel inherits from box, so all of the layout attrtibutes associated with that widget can be used here. The following example shows <tabpanel> as the root element of a basic tab widget:

 
 
<tabcontrol align="vertical"> 
  <tabbox align="horizontal"> 
        <tab value="Tab One" /> 
        <tab value="Tab Two" /> 
        <tab value="Tab Three" /> 
  </tabbox> 
                              
  <tabpanel flex="100%"> 
        <text value="View
One"/> 
        <text value="View
Two"/> 
        <text value="View
Three"/> 
  </tabpanel> 
</tabcontrol> 
Note that in the example above, the views themselves are constructed out of titledbuttons. You can also use boxes.
 


Last updated: 3/27/00 Ian Oeschger