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
Custom date picker for date fields in AMP forms #6469
Comments
/cc @dandv @choumx @aghassemi FYI a) expose the events in bind to make this work and create an ABE that demos how folks could compose an advanced case, and |
Can't wait for autocomplete and this. 👍 |
+1. Date range picking has been requested by travel partners - searching for hotel availability for example. |
I highly recommend we try to find an existing good open-source implementation and integrate it. A high quality, mobile friendly date picker with a11y and i18n support is a lot of work. Supporting non-Gregorian calendars adds a lot to it as well. Looking at Airbnb's version (https://github.com/airbnb/react-dates): 500 commits, 57 contributors, thousands lines of code... |
/cc @erwinmombay regarding last comment, looks like unversioned Canary is pointing to prod. Enabling Dev Channel seems to only impact cached resources and not origins. |
Update that this is now working in the Dev Channel. |
Any timeline for when it will be out of experimental stage? |
@lswang1618 @cvializ Given default styles are now in, I personally feel comfortable moving this to at least a doc-level optin so folks can start shipping in 3-4 weeks, thoughts? (@cvializ I guess we still need the validation rules). |
Sure, sgtm. |
Any update on this timeline? |
Should the calendars be hidden by default or do they need to be implemented inside of a lightbox? This demo has the calendars hidden, but AMPByExample Demo displays them by default. Which is expected? |
@mdiblasio Isn't it a user experience choice for the publisher? cc @lswang1618 |
I'm more referring to the inconsistency between the 2 demos, which have nearly the same implementations. Neither use a lightbox but the first demo doesn't display the calendar until the field is clicked. If the publisher doesn't want to show the calendar until clicked, is there an attribute or must they use a lightbox? |
It's an attribute - use mode:overlay |
This issue hasn't been updated in awhile. @lswang1618 Do you have any updates? |
What about validation? How do you make this date picker a mandatory field like e-mail or name? Documentation for validation seems not to apply to this component. |
Ah, the |
has been implemented and launched. If you have any FR or bugs, please fine a new ticket. |
I am looking for Time Picker. |
This issue is opened to collect requirements and track development of being able to use a custom date picker in conjunction with the date field support in AMP forms.
The text was updated successfully, but these errors were encountered: