the compact javascript framework
in partnership with mediatemple
Creates a slider with two elements: a knob and a container. Returns the values.
The Slider requires an XHTML doctype.
element | the knob container |
knob | the handle |
options | see Options below |
steps | the number of steps for your slider. |
mode | either ‘horizontal’ or ‘vertical’. defaults to horizontal. |
offset | relative offset for knob position. default to 0. |
onChange | a function to fire when the value changes. |
onComplete | a function to fire when you’re done dragging. |
onTick | optionally, you can alter the onTick behavior, for example displaying an effect of the knob moving to the desired position. Passes as parameter the new position. |
Properties | |
set | The slider will get the step you pass. |
Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and GeSHi