-
Notifications
You must be signed in to change notification settings - Fork 25
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
DateTimeInput min/max value #2242
Comments
Hi @antoniolodias ✋ Thanks for opening this feature request. I would like to ask a question about the new props you would like the Also, how do you expect the time validation to work? Thanks. |
Hi @CarlosCortizasCT thank you for looking at this! All good questions. For the timeZone, again, I think it could be flexible through a prop, maybe have a default that can be overwritten by a prop, the default should be whatever it's currently used for the The validation is interesting, maybe some UX person could help out here. What I imagined was it being precise to the level of the time, so the day itself is still available but if you try to add a time before on the bottom area or on the input area then maybe the dropdown would not close 🙄 maybe the input text could change colour to gray to show the user something is wrong. What do you think? Thanks for following up with this! |
Hi @antoniolodias, Let me go through your comments:
Thanks. |
Hey guys, thanks for the suggestions! I will have a look and prepare some proposals. I will schedule a short sync afterwards |
Is your feature request related to a problem? Please describe.
I need to have some disabled days when using DateTimeInput component
Describe the solution you'd like
I noticed a similar component DateInput accepts 2 props
minValue
andmaxValue
that replicate exactly what I needDescribe alternatives you've considered
I can achieve more or less the same with an error message after selection, but having the options disabled from the start would be much better!
Additional context
Where I am currently working I would like to set any dates in the past to
disabled
, having this possible through a prop would be greatThe text was updated successfully, but these errors were encountered: