A row of tabs. A tabs
element should be placed inside a tabbox
and should contain tab
elements.
NB: You can add some other elements to tabs
such as button
, but they will receive an index. Activating them will not change the selectedIndex.
More information is available in the XUL tutorial.
(example needed)
disableclose
true
the close button will be disabled.disabled
command
event will not fire. In the case of form elements, it will not be submitted. Do not set the attribute to true
, as this will suggest you can set it to false
to enable the element again, which is not the case.
disabled
attribute is allowed only for form controls. Using it with an anchor tag (an <a>
link) will have no effect.disabled
property which, except for menus and menuitems, is normally preferred to use of the attribute, as it may need to update additional state.onclosetab
onnewtab
selectedIndex
tabindex
tab
" key. Elements with a higher tabindex
are later in the tab sequence.tooltiptextnew
accessibleType
itemCount
selectedIndex
-1
to this property, all items will be deselected. Returns -1 if no items are selectedselectedItem
null
. You can select an item by setting this value. A select event will be sent to the controlling container (i.e. the listbox, richlistbox, radiogroup, etc., not the list item that was selected) when it is changed either via this property, the selectedIndex
property, or changed by the user.value
value
attribute. For textbox
and user editable menulist
elements, the contents, as visible to the user, are read and set using the Textbox.value
and Menulist.value syntax.
advanceSelectedTab( dir, wrap )
1
, the currently selected tab changes to the next tab. If the argument dir is set to -1
, the currently selected tab changes to the previous tab. If the wrap argument is true
, the adjustment will wrap around when the first or last tab is reached.appendItem( label, value )
getIndexOfItem( item )
getItemAtIndex( index )
insertItemAt( index, label, value )
removeItemAt( index )
tabbox
, tab
, tabpanels
, tabpanel
.nsIAccessibleProvider
, nsIDOMXULSelectControlElement