question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat: add support for wheel picker in ion-datetime

See original GitHub issue

Prequisites

Describe the Feature Request

Have the option to choose between the wheel and calendar with a mode prop.

Describe the Use Case

Most apps that were using the old wheel mode didn’t cater for calendar design and have to either squeeze the whole calendar into a tight space, open a modal, or a popover to display a calendar.

the upgrade might be tedious for some people (me…)

Describe Preferred Solution

Have a mode prop to switch between calendar and wheel

<ion-calendar mode="wheel"></ion-calendar>

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:11
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

8reactions
liamdebeasicommented, Sep 24, 2021

This is something we are definitely interested in adding to Ionic. The current wheel picker in Ionic 5 has performance issues and is buggy. We did not have the resources to refactor the wheel picker and add the new calendar picker at the same time, so we chose to start with the calendar picker in Ionic 6. We should expose this new wheel picker functionality through ion-picker so developers using wheels in non-datetime contexts can take advantage of its improvements.

4reactions
liamdebeasicommented, Jul 27, 2022

This was released as part of Ionic 6.2.0 earlier today: https://ionicframework.com/docs/api/datetime#wheel-style-pickers

Read more comments on GitHub >

github_iconTop Results From Across the Web

ion-datetime - Ionic Framework
Datetimes present a picker interface to select dates and times. Ionic's API Datetime input component easily displays a preferred format, and manages values....
Read more >
Sean Perkins (@seanfperkins) / Twitter
Ionic currently has a component that resembles the date picker. ... feat: Dot indicator for individual calendar day in Datetime · Issue #25832 ......
Read more >
Date picker popup in Ionic 6 | Damir's Corner
To make the ion-datetime component appear in a popup, place it inside the ion-popover component. To display the selected date on the page,...
Read more >
Ionic 5 Date and Time Input Sample App - Appery.io
Sample app demonstrating Date and Time Input in Ionic 5. ... Useful link for tracking browser support: http://caniuse.com/#feat=input-datetime ...
Read more >
[Ionic Angular] v6で新しくなったion-datetimeについて考える
現在、dateを指定するためにはPickerしか使えないのですが、Wheelを復活させる動きがあります。 feat: add support for wheel picker in ion-datetime · ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found