I have a horizontal slider with 10 steps on it.
When I move the slider from 0 to 1, I want to change a label to say step 1.
When I move the slider from 1 to 2, I want to change a label to say step 2.
When I move the slider from 2 to 3, I want to change a label to say step 3.
all the way up to step 10. And I need the reverse to work as well.
I've cretead the horizontal slider, with 10 steps.
I created 10 states for the label, one for each step.
But I cannot figure out how to call an event from the slider as it reaches each interval.
Does anyone know how I can make the movement on the slider trigger changes in state of the label?
Any help would be much appreciated.
Retrieving data ...