Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

In v6 beta, what should I use for a time picker instead of Ionic Datetime?

$
0
0

In v5, I’ve been using Ionic Datetime to let users select a time: just the hour and minutes (0, 15, 30, or 45).

The code looks like this:

    <IonDatetime
      {...register('field_reminder', { required: true })}
      displayFormat="H:mm"
      minuteValues="0,15,30,45"
      id="edit-reminder"
    />

However, the new datetime picker removes the displayFormat option and shows a calendar. This doesn’t work for my case because I only wanted to let users pick the time (hours + minutes).

So what should I use for a time select (wheel picker with hours and minutes on separate wheels) in v6?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>