Class: SC.SliderView


Extends SC.Control, SC.View.

SliderView displays a horizontal slider control that you can use to choose from a spectrum (or a sequence) of values.

The property value holds the slider's current value. You can set the minimum, maximum and step properties as well.

Defined in: slider.js

Since:
SproutCore 1.0

Field Summary

Instance Methods

Field Detail

contentMaximumKey String

Optionally specify the key used to extract the maximum slider value from the content object. If this is set to null then the maximum value will not be derived from the content object.

contentMinimumKey String

Optionally specify the key used to extract the minimum slider value from the content object. If this is set to null then the minimum value will not be derived from the content object.

maximum Number
The maximum value of the slider bar.
Default value:
1
minimum Number
The minimum value of the slider.
Default value:
0
step Number

Optionally set to the minimum step size allowed.

All values will be rounded to this step size when displayed.

Default value:
0.1
value
The current value of the slider.

Instance Method Detail

displayValue()
keyDown(evt)
Parameters:
evt
mouseDown(evt)
Parameters:
evt
mouseDragged(evt)
Parameters:
evt
mouseUp(evt)
Parameters:
evt
mouseWheel(evt)
Parameters:
evt
stepPositions()
steps()
touchEnd(evt)
Parameters:
evt
touchesDragged(evt)
Parameters:
evt
touchStart(evt)
Parameters:
evt
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:21 GMT-0600 (CST)