Slider.js

Contains Slider

License

MIT-style license.

Summary
Slider.jsContains Slider
SliderCreates a slider with two elements: a knob and a container.
Properties
setThe slider will get the step you pass.

Slider

Creates a slider with two elements: a knob and a container.  Returns the values.

Note

The Slider requires an XHTML doctype.

Arguments

elementthe knob container
knobthe handle
optionssee Options below

Options

stepsthe number of steps for your slider.
modeeither ‘horizontal’ or ‘vertical’. defaults to horizontal.
offsetrelative offset for knob position. default to 0.

Events

onChangea function to fire when the value changes.
onCompletea function to fire when you’re done dragging.
onTickoptionally, 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.
Summary
Properties
setThe slider will get the step you pass.

Properties

set

The slider will get the step you pass.

Arguments

stepone integer
Creates a slider with two elements: a knob and a container.

Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and GeSHi