fetrarij / ngx-daterangepicker-material

Pure Angular 2+ date range picker with material design theme, a demo here:
https://fetrarij.github.io/ngx-daterangepicker-material/
MIT License
247 stars 248 forks source link

Add an input to set the min years dropdown and max years dropdown #350

Open akaNico opened 3 years ago

akaNico commented 3 years ago

Versions

Describe the bug When the option showDropdowns is enabled the min years is current date -50 and max years is currend date +5. The number 50 and 5 are hardcoded, is it possible to set these numbers via Input?

To Reproduce Steps to reproduce the behavior:

  1. Set Input showDropdowns to true
  2. Open the dateRangepicker
  3. In the left picker the min years is -50
  4. In the right pcker the max year is +5

Expected behavior Using two new Inputs it is possible to change the min and max year (eg. -5 and +50).

santosh-k1 commented 1 year ago

We can display the custom date by using minDate and maxDate