Mozilla XUL Element and Script Reference

Contents  Quick Reference

Tabcontrol

A container used to display tabbed pages of elements to the user. The tabcontrol should contain two children, the first a tabbox which contains the tabs and the second a tabpanel which contains the contents of the pages. This is a type of box that defaults to vertical orientation.

Attributes:

Attributes inherited from XUL Element


align

Determines the horizontal alignment of the children of the tabcontrol.

autostretch

In the tabcontrol is placed inside a horizontally oriented box, autostretch determines whether the tabcontrol stretches vertically to fit the given space. For vertically oriented boxes, determines whether the tabcontrol stretches horizontally to fit the given space. Stetching in the opoosite direction is controlled with the flex attribute.

crop

If the label of the tabcontrol is too small to fit in its given space, the text will be cropped on the side specified by the crop attribute. An ellipsis will be placed in place of the cropped text.

debug

If true, extra borders are drawn around the element and all its descendants. This can be used to determine orientation and where flexible elements are. If debug mode is enabled for a box, horizontal oriented boxes are displayed with a blue border and vertical boxes are displayed with a red border. The border above the element will be straight for non-flexible elements and wavy for flexible elements.

flex

Indicates the flexibility of the tabcontrol. Flexible elements grow and shrink to fit their given space. The actual value is not relevant unless there are other flexible elements with-in the same container. Elements with larger flex values will grow more than elements with lower flex values, at the ratio determined by the two elements.

height

The height of the tabcontrol in pixels. It is recommended to use the CSS height property instead.

index

The index of the page of the tabcontrol that is currently displayed. The first page is 0.

left

For elements placed within a bulletinboard, specifies the position of the left edge of the tabcontrol.

orient

Used to specify whether the children of the tabcontrol element are oriented horizontally or vertically.

top

For elements placed within a bulletinboard, specifies the position of the top edge of the tabcontrol.

valign

Determines the vertical alignment of the children of the tabcontrol.

width

The width of the tabcontrol in pixels. It is recommended to use the CSS width property instead.

JavaScript Properties and Methods:

Properties and Methods inherited from XUL Element

selectedTab

The value of the selected tab. Assign a value to this property to modify the currently selected tab.