-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Daterangepicker: Max date range feature #5562
Comments
There's look like #5636, but, we don't have such functionality yet :( |
@daniloff200 If this feature is approved, Can I work on this? |
@arvindm95 yeah, that will be very cool!!! |
… date range feature (valor-software#5562)
…elects the end date (valor-software#5562)
…date < first date, max date range should re-render (valor-software#5562)
@arvindm95 - the opposite of this would be super helpful for us. We need a way to enforce a minimum date range (eg user must pick at least a week). Is that something that could be easily worked in while you are on it? |
… date range feature (valor-software#5562)
…elects the end date (valor-software#5562)
…date < first date, max date range should re-render (valor-software#5562)
* feat(datepicker): add max date range feature to daterangepicker (#5562) * docs(datepicker): add demo and documentation to daterangepicker - max date range feature (#5562) * feat(datepicker): reset maxdate on inline daterangepicker once user selects the end date (#5562) * test(datepicker): add tests to max date range feature (#5562) * fix(datepicker): handle max date range case when user selects second date < first date, max date range should re-render (#5562) * refactor(datepicker): add return type to method (#5562) * feat(datepicker): add max date range feature to daterangepicker (#5562) * docs(datepicker): add demo and documentation to daterangepicker - max date range feature (#5562) * feat(datepicker): reset maxdate on inline daterangepicker once user selects the end date (#5562) * test(datepicker): add tests to max date range feature (#5562) * fix(datepicker): handle max date range case when user selects second date < first date, max date range should re-render (#5562) * refactor(datepicker): add return type to method (#5562) Co-authored-by: Arvind Muthuraman <arvind.muthuraman@coda.global> Co-authored-by: Dmitriy Danilov <daniloff200@gmail.com>
Is your feature request related to a problem? Please describe.
We would like to be able to enforce that a selected date range is not larger then for example "6 months".
Describe the solution you'd like
Setting this value would allow you to select any date between the existing
minDate
/maxDate
, after selecting the first date the dates that don't fall within themaximumDateRange
would be disabledDescribe alternatives you've considered
I tried to modify the
minDate
/maxDate
after selecting the first date of the dateRange. But I didn't see any callback or method that responds to selecting the first dateThe text was updated successfully, but these errors were encountered: