-
Notifications
You must be signed in to change notification settings - Fork 5
Slider Renderer
Tobias Paczian edited this page Mar 29, 2018
·
2 revisions

Renders a slider control for selecting numbers.
-
width - Width of the slider bar in pixel. Default is
400. -
height - Height of the slider bar in pixel. Default is
10. -
color - Color of the slider bar. Default is
#08c. -
sliderWidth - Width of the slider handle in pixel. Default is
12. -
min - Minimum value of the control. Default is
-100. -
max - Maximum value of the control. Default is
100. -
current - Current value of the control. Default is
0. -
showValue - Boolean whether to display the current value to the right of the slider bar. Default is
true. -
fontName - Name of the font for the value. Default is
Arial. -
fontSize - Size of the font for the value. Default is
12px. -
fontColor - Color of the font for the value. Default is
gray. - callback - Function to be called when the slider is moved. This function is passed the current value of the slider control. Default is null.