Ionic Framework - Time Picker - Enable endless scrolling

Viewed 248

I want the time picker (https://ionicframework.com/docs/api/datetime) to rotate endless.

If I select hours I start at 0 and end at 23. When I’m at 23 I have to scroll all the way up to get to 0.

What I want is when I’m at 23 to just scroll one unit further down so it starts at 0 again so that I could theoretically scroll down endlessly.

It should go further like the red digits

1 Answers

I don't believe there's also someway to do this kind of thing in ion-datetime component yet. Something you can do is to bind a variable which repeats those values [0-23] and set on hourValues​ attribute

Related