The spinner widget, as demonstrated here, can be used as time input for the user. For example, using the Globalize library to parse, and increment the time as the user spins up and spins down. However, the demo uses minute increments for each spin - not all that useful if you're filling out a form.
Showing posts with label step. Show all posts
Showing posts with label step. Show all posts
Wednesday, December 4, 2013
Monday, December 2, 2013
Dynamic Slider Step Values
The jQuery UI slider widget defaults to a
step
value of 1. That means that each time the slider handle is moved, the slider value is incremented or decremented by 1. We can specify a different step
value, and have these increments and decrements changed accordingly. For example, we could set the step
option to 5, and have an initial value
of 10. Moving the slider to the right, the next value would be 15, and so on. Not all data series work this way. Think Fibonacci. Unfortunately, a fixed step is the only thing we can supply to the slider value. However, we can map the default increments to the numbers in our series.
Subscribe to:
Posts
(
Atom
)