7.1.2.11 slider
slider(string $id, string $track_id, array $options)
Creates a directional slider control. For more information see http://wiki.github.com/madrobby/scriptaculous/slider.
Common options might include:
| $options keys | Description |
|---|---|
$options['axis'] |
Sets the direction the slider will move in. 'horizontal' or 'vertical'. Defaults to horizontal |
$options['handleImage'] |
The id of the image that represents the handle. This is used to swap out the image src with disabled image src when the slider is enabled. Used in conjunction with handleDisabled. |
$options['increment'] |
Sets the relationship of pixels to values. Setting to 1 will make each pixel adjust the slider value by one. |
$options['handleDisabled'] |
The id of the image that represents the disabled handle. This is used to change the image src when the slider is disabled. Used in conjunction handleImage. |
$options['change'] |
JavaScript callback fired when the slider has finished moving, or has its value changed. The callback function receives the slider's current value as a parameter. |
$options['slide'] |
JavaScript callback that is called whenever the slider is moved by dragging. It receives the slider's current value as a parameter. |


























