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

Daterangepicker: Max date range feature #5562

Closed
JelleVisser opened this issue Dec 3, 2019 · 4 comments · Fixed by #5684
Closed

Daterangepicker: Max date range feature #5562

JelleVisser opened this issue Dec 3, 2019 · 4 comments · Fixed by #5684

Comments

@JelleVisser
Copy link

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 the maximumDateRange would be disabled

Describe 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 date

@daniloff200
Copy link
Contributor

There's look like #5636, but, we don't have such functionality yet :(

@arvindm95
Copy link
Contributor

@daniloff200 If this feature is approved, Can I work on this?

@daniloff200
Copy link
Contributor

@arvindm95 yeah, that will be very cool!!!
Feel free to pick it, I very appreciate it!

arvindm95 pushed a commit to arvindm95/ngx-bootstrap that referenced this issue Feb 21, 2020
arvindm95 pushed a commit to arvindm95/ngx-bootstrap that referenced this issue Feb 21, 2020
arvindm95 pushed a commit to arvindm95/ngx-bootstrap that referenced this issue Feb 21, 2020
arvindm95 pushed a commit to arvindm95/ngx-bootstrap that referenced this issue Feb 21, 2020
arvindm95 pushed a commit to arvindm95/ngx-bootstrap that referenced this issue Feb 21, 2020
@pusherman
Copy link

@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?

arvindm95 pushed a commit to arvindm95/ngx-bootstrap that referenced this issue Jul 1, 2020
arvindm95 pushed a commit to arvindm95/ngx-bootstrap that referenced this issue Jul 1, 2020
arvindm95 pushed a commit to arvindm95/ngx-bootstrap that referenced this issue Jul 1, 2020
arvindm95 pushed a commit to arvindm95/ngx-bootstrap that referenced this issue Jul 1, 2020
arvindm95 pushed a commit to arvindm95/ngx-bootstrap that referenced this issue Jul 1, 2020
daniloff200 added a commit that referenced this issue Jul 14, 2020
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants