XUL Programmer's Reference Manual

<slider>

Attributes Common Children
id <thumb />
class  
flex  
align  
orient  
autostretch  
The slider represents the scrollable area in a scrollbar. It inherits from box, as you can see from the positioning attributes it can use. The thumb element is frequently a child of slider. With no thumb, the slider is simply a span between the scrollbarbuttons. The following example shows a slider defined within a simple scrollbar:
 
<scrollbar orient="vertical" 
    curpos="50" 
    pageIncrement="20" 
    increment="5" 
    flex="100%">
  <scrollbarbutton type="decrement"/>
  <slider flex="100%">
     <thumb value="Thumb" flex="0%"/>
  </slider>
  <scrollbarbutton type="increment"/>
</scrollbar>
Note that the actual positioning of the slider and the thumb within it are handled by the scrollbar parent, as in the previous example.

 


 
 
Last updated: 2/17/00 Ian Oeschger