I have implemented the Angular Material Date picker, and wish to filter the days that can be picked. So I want the user to select a date then only be able a range of 21 days after the start date or less.
I was considering to have two date fields, but the client wants the date range look and feel.
But it seems like the dateRange does not have the filter function. How would i approach this?
So I got a simple solution, Where i still allowed the user to select more than 21 days, then after the second date selection just bring it back to 21 days and set the selector to the new end date.
The HTML code
The TS code