(^616) ❘ APPENDIX S SLIDER
slider('values',
index, value)
Sets the value of the specifi ed handle. jQuery
slider('values',
valuesArray)
Sets the values of the specifi ed handles using an
array.
jQuery
slider('widget') Returns a jQuery object containing the slider. jQuery
Slider Options
Option Description Type
animate Whether slide handles smoothly when the user
clicks outside the handle on the bar.
Default value: false
Boolean
disabled Disables the slider if set to true.
Default value: false
Boolean
max The maximum value of the slider. Useful for
tracking values via callback and to set steps.
Default value: 100
Number
min The minimum value of the slider.
Default value: 0
Number
orientation Determines whether the slider is moved
horizontally or vertically. The possible values are
horizontal and vertical.
Default value: horizontal
String
range If a boolean is provided and set to true, the
slider will detect if you have two handles and
creates a stylable range element between these
two. You now also have access to ui.range in
your callbacks to get the amount of the range.
If a string is provided the potential values are
min and max.
Default value: false
Boolean,
String
step Determines the interval between each step the
slider takes between min and mx. The full range
should be easily divided by the step.
Default value: 1
Number
(continued)
http://www.it-ebooks.info
elliott
(Elliott)
#1