Skip to content
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

Disable dates and set max months #9

Open
adomrockie opened this issue Sep 15, 2020 · 2 comments
Open

Disable dates and set max months #9

adomrockie opened this issue Sep 15, 2020 · 2 comments

Comments

@adomrockie
Copy link

Can we have a prop with disabled dates?

Also another prop to set the number of years or months.

I do not think is ideal for a user to scroll throughout the year.

@kush-agra
Copy link
Owner

to disable a specific date range?

for the latter I think using a separate mini calendar widget would be a better idea with a shared date state so if the user has to select a date far into the future they use the calendar else they use this date picker for quick tap to select date without opening a full fledged calendar, thoughts?

@adomrockie
Copy link
Author

to disable a specific date range?

for the latter I think using a separate mini calendar widget would be a better idea with a shared date state so if the user has to select a date far into the future they use the calendar else they use this date picker for quick tap to select date without opening a full fledged calendar, thoughts?

I think to keep it simple and lightweight. Have a user give a range of days of the week to disable eg. 0,1...6 (Mon-Sun) If these values are set your widget will disable selection on those days.

Obviously it can be expanded to include a specific date value(s)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants