keen-slider icon indicating copy to clipboard operation
keen-slider copied to clipboard

How to find out which time is currently set on the Timepicker example

Open Strieglitz opened this issue 1 year ago • 4 comments

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.

Strieglitz avatar Oct 25 '23 11:10 Strieglitz

hello @Strieglitz did you find solution to your problem?

ng9000 avatar Feb 08 '24 08:02 ng9000

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 avatar Jun 06 '24 03:06 NaNguyenn

@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?

ng9000 avatar Jun 06 '24 04:06 ng9000

sure, this is the sandbox of my solution sandbox. I think there are better solutions than this but I hope it can help you.

NaNguyenn avatar Jun 06 '24 04:06 NaNguyenn