medienPARK Logo

medienPARK | MooTools Skripte

[ Back | Overview | Docs | Demo | Download ]

Class: DoubleSlider

DoubleSlider is a Script to give you a Slider Component with two knobs instead of one. It provides horizontal and vertical Sliding.

Implements:

Events, Options

DoubleSlider Method: constructor

Syntax:

new DoubleSlider('DoubleSliderElement');

Arguments:

  1. container - (string) The Id of the container which will represent the DoubleSlider.
  2. options - (**) The options for the DoubleSlider instance.

Options:

Events:

onChange
Signature
onChange: function(values)
Example
onChange: function(values)
{
  alert(values.knob_left + ' - ' + values.knob_right);
}

onStart
Signature
onStart: function(values)
Example
onStart: function(values)
{
  alert(values.knob_left + ' - ' + values.knob_right);
}

onComplete
Signature
onComplete: function(values)
Example
onComplete: function(values)
{
  alert(values.knob_left + ' - ' + values.knob_right);
}