-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Migration path from v5 ion-datetime to v6 #23542
Comments
Fleshing this out a bit more, there are 4 main tasks here:
|
Can I also add that the |
You can select time only via the
|
I tried changing my Android 11 phone's 24-hour preference to true and it did not update the ion-datetime to 24-hr. An override would be ideal though since I have a user preference setting to let them pick 12-hr and 24-hr format. |
You need to change the locale/region itself, not the 24 hour preference. Browsers do not currently have a way of separating the 24 hour preference from the locale. For example a locale of |
Ohh gotcha, thank you for clearing that up. I'll make sure to put in a feature request then! |
Perhaps the simplest way to migrate from v5 is to use an |
Hi everyone, I wanted to provide an update regarding the work we have done here. As per #23542 (comment), there were 4 things that the Ionic 6 datetime migration needs:
This is now possible using the
This has always been possible with the new datetime, but we were missing examples. You can now find examples for how to do this on the Datetime Usage Documentation. The "Datetime in popover with input" example shows how to do this.
We added the I don't think we have perfected the developer experience on this. Ideally developers could show a modal that is snapped to fit the size of the datetime. We are tracking this in #24316.
Work on this has been completed via ionic-team/ionic-docs#2111. The documentation for this will be live soon. Additionally, we have created a sample application to show "before and after" usage of This datetime component is a big change, and I feel we have addressed many of the concerns listed here and in other threads. That being said, the new datetime component is not perfect, and there may be some speed bumps along the way. Please open new issues with any feedback you may have on this component. We are committed to creating a great date and time picker experience for Ionic. I am going to close this as the tasks laid out in the initial post have been completed. Please look for the full migration guide soon. Thank you! |
Hi everyone, I just started migrating my ion-datetime v5 to the new v6 version. My v5 ion-datetime is inside a template-driven angular form. It has a name-property to connect to a value of the form. I can implement a workaround, but I would prefer it this can work somehow. Best regards, |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Feature Request
Ionic version:
[x] 6.x
The v5 ionic ion-datetime component combines both display of date/time in various formats with selection of date/time in various formats. The new v6 component is an inline selection of date/time as a calendar only.
In converting a v5 project to v6 a page of (typical) array of ion-item with ion-datetime will convert to inline calendars. This leaves you in a place where you have to recreate the v5 functionality and solve:
The Wishlist:
The text was updated successfully, but these errors were encountered: