SaturnTeam / saturn-datepicker

Angular Material Datepicker with range selection
MIT License
276 stars 110 forks source link

[Features] Give possibility to set the selection range #151

Open TheNemus opened 4 years ago

TheNemus commented 4 years ago

Hi,

I need to define the range days number in order to prevent user to select ranges not valid for me (e.g. major than 5 days). I tried using ]matDatepickerFilter] or (dateChange) but foth of them are useless cause the start date is set only when I select the end date too, preventing me to do any check BEFORE end date is selected.

SrinivasaKK commented 4 years ago

is there any way I can detect a first selected date? My range is dynamic and it depends on the first selected date. So I need to detect the first selected date event and limit the range for end date.