Class GSSlider
A slider control.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
GSSlider(parent, options)
Creates a new
GSSlider |
| Method Attributes | Method Name and Description |
|---|---|
|
Returns the slider element
|
|
|
getValue()
Returns the current slider value
|
|
|
setValue(val, animate)
Sets the value of the slider
|
Class Detail
GSSlider(parent, options)
Creates a new
GSSlider
- Parameters:
- {HTMLElement} parent
- the checkbox parent element
- {Object} options Optional
- an object literal specifying the checkbox options to set:
- {int} options.value
- the initial value for the slider, defaults to
0 - {int} options.min
- the minimum value for the slider, defaults to
0 - {int} options.max
- the maximum value for the slider, defaults to
100 - {int} options.stepInterval
- the size of each interval the slider takes between
minandmax. The full specified value range of the slider (max - min) needs to be evenly divisible by the step. - {boolean} options.showDataTip
- if
truea tooltip will be displayed above the slider thumb while dragging with the current slider value, defaults totrue
Method Detail
{HTMLElement}
getElement()
Returns the slider element
- Returns:
- {HTMLElement} the slider element
{int}
getValue()
Returns the current slider value
- Returns:
- {int} the current slider value
setValue(val, animate)
Sets the value of the slider
- Parameters:
- val
- the value of the slider to set
- {boolean} animate
- animate the slider thumb