JavaXT
|
|||||||||||
Slider ClassBasic horizontal slide control. Can be used as a range slider, play control, etc. Supports touch devices. Credit: http://css3wizardry.com/2010/09/14/range-slider-with-css-and-javascript/
ConstructorsUsed to instantiate this class
Config Optionsdisabled If true, the slider will be disabled when it is initialized. The slider can be enabled and disabled using the enable() and disable() methods.
style Style for individual elements within the component. Note that you can provide CSS class names instead of individual style definitions.
EventsPublic MethodsgetValue( returnPercentage ) Returns the value of the slider.
getWidth( ) Returns the width of the slider. This, together with the getValue() method, can be used to compute a percentage value. setValue( x, silent ) Used to set the position of the slider.
|