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

Date Range Selection and dateSelectionFilter #30

Closed
polatolu opened this issue Jul 29, 2019 · 2 comments
Closed

Date Range Selection and dateSelectionFilter #30

polatolu opened this issue Jul 29, 2019 · 2 comments

Comments

@polatolu
Copy link

Hi,

Thanks for the great library.

Is it possible to disallow users to select date ranges if one or more of the days in the selected range is not selectable?

So, let's say, I'm setting my dateSelectionFilter to not allow selecting date 17/06/2019. In that case, user should not be able to select a range like between 15/06/2019 and 19/06/2019 or a wider range because that one not selectable day is in the range.

I checked and couldn't find a solution for it. Is it possible to do that at the moment or do we need an update?

I can still manually achieve this by after user makes a range selection, I can loop through the selected days and check them one-by-one, but just wondered if the CalendarView have this feature already.

@rAseri
Copy link
Contributor

rAseri commented Jul 30, 2019

Hi and thank you!

At the current version there is no suitable api to achieve what you want "out of the box". And I think this is not a common use case to implement it in the library. But, as you said, you can implement this scenario by manually checking selected dates and updating dates range accordingly.

@polatolu
Copy link
Author

Thank you.

I implemented it by the way I explained above and it is working fine.

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