keen-slider
keen-slider copied to clipboard
How to find out which time is currently set on the Timepicker example
Hi, how can i access the current hour and minute that is displayed on the "Timepicker" example? After i spinned the Wheel i see the time but cannot find out how to read it into code with js.
hello @Strieglitz did you find solution to your problem?
I had the same problem, my solution was to read the relative or absolute value of the current slide (s.track.details.rel or s.track.details.abs respectively) then pass them in my setValue function to get the value of that slide. Hope this can help
@NaNguyenn I can't figure out from where to read these values (s.track.details.rel or s.track.details.abs respectively) can you share a sandbox for it if possible?
sure, this is the sandbox of my solution sandbox. I think there are better solutions than this but I hope it can help you.