A Dojo mobile slider displays a vertical or horizontal
bar with a handle, which is a circular end that the user
drags to update a numeric value.
Fields
- maximum
- An integer that represents the maximum value.
- minimum
- An integer that represents the minimum value.
- orientation
- A string that represents the slider orientation. One of these
values:
- DojoMobileLib.SLIDER_HORIZONTAL, for a bar that runs sideways.
- DojoMobileLib.SLIDER_VERTICAL, for a bar that runs up and down.
- DojoMobileLib.SLIDER_AUTO, for a bar that runs in the direction
that best fits the available space.
- step
- An integer that represents the change in value as the user drags
the handler. A zero represents the smallest possible change. The default
is 1.
- value
- A string that represents the current numeric value.
Events
The onChange event fires when
the user drags the handle.
Example
Use of this widget requires a statement like this:
import dojo.mobile.widgets.DojoMobileSlider;