-
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
select Maximum 30 days in ngx Bootstrap date range picker #5636
Comments
hi, @neerajmadaad , what do you mean by maximum 30 days in daterangepicker ? Does it mean functionality, which does not allow, for example, 1st of April, if today is 1st of March, or, you mean, that you want to allow to see only one month in daterangepicker? Could you provide some example, or, at least more info about your idea? |
We have maxDate property, you can use it, if you want not to allow user to select some date, after 30 days. That will be something like that: in your component: in template: |
For example in Date range picker user select April 1 2019(as From date) then all dates after 30 April (April 1+ 30 days) should be disabled. I hope I have cleared my question. |
Yeah, now it's more understandable |
Can you please help me with any event that I can use which is triggered when "From date" is chosen from the daterange picker, I would try to set max date on "From date selection" and then will try to remove it(Max date) once the user has selected "To Date". |
Hi @daniloff200 onDatepickerShown() { Thanks |
Hi @daniloff200 |
I think instead of a property true/false for selecting a fixed duration, there should be an option to specify the maximum duration in days from the selected date. |
@daniloff200 Since this is already available using |
Hi
I want that user should be able to maximum select maximum 30 days in the date range picker.
Is this functionality available in this?
The text was updated successfully, but these errors were encountered: