A container used to display a set of tabbed pages of elements. A row of tabs is displayed at the top of tabbox which may be used to switch between each page. The tabbox
should contain two children, the first a tabs
element which contains the tabs and the second a tabpanels
element which contains the contents of the pages.
More information is available in the XUL tutorial.
<tabbox id="myTabList" selectedIndex="2"> <tabs> <tab label="A First tab"/> <tab label="Second tab"/> <tab label="Another tab"/> <tab label="Last tab"/> </tabs> <tabpanels> <tabpanel><!-- tabpanel First elements go here --></tabpanel> <tabpanel><!-- tabpanel Second elements go here --></tabpanel> <tabpanel><button label="Click me"/></tabpanel> <tabpanel><!-- tabpanel Fourth elements go here --></tabpanel> </tabpanels> </tabbox>
eventnode
tabbox
. Thus, if this attribute is not used, the tabbox
or an element inside it must have the focus for the keyboard navigation to apply.parent
tabbox
.window
document
handleCtrlTab
true
or omitted, the tabbox
will switch to the next tab when the Control and Tab keys are pressed. If the Shift key is also held down, the previous tab will be displayed. If this attribute is set to false
, these keys do not navigate between tabs.
accessibleType
handleCtrlPageUpDown
handleCtrlPageUpDown
attribute.handleCtrlTab
handleCtrlTab
attibute.selectedIndex
-1
to this property, all items will be deselected. Returns -1 if no items are selectedselectedPanel
<tabbox>
element. Assigning a value to this property will modify the selected panel. A select event will be sent when the selected panel is changed.selectedTab
tab
elements in the tabs
element. Assign a value to this property to modify the currently selected tab.tabs
, tab
, tabpanels
, tabpanel
.