Mozilla XUL Element and Script Reference

Contents  Quick Reference

Slider

This element is essentially a scrollbar without the scroll bar buttons. It is used in implementing a scrollbar.

Attributes:

Attributes inherited from XUL Element


align

Determines the horizontal alignment of the children of the slider.

autostretch

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

collapsed

If true, then the slider is collapsed and does not appear. It is equavalent to setting the CSS visibility property to collapsed.

crop

If the label of the slider 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.

curpos

The current position of the slider, which ranges from 0 to the value of the maxpos attribute. The default value is 0.

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 slider. 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 slider in pixels. It is recommended to use the CSS height property instead.

increment

The amount that the value of the curpos attribute changes by when the scroll bar arrows are clicked. The default value is 1.

left

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

maxpos

The maximum position of the slider. The default value is 100.

orient

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

pageincrement

The amount that the value of the curpos attribute changes by when the tray of the scroll bar is clicked. The tray is the area in which the scroll bar thumb moves along. The default value is 10.

top

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

valign

Determines the vertical alignment of the children of the slider.

width

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