range-datepicker icon indicating copy to clipboard operation
range-datepicker copied to clipboard

Add support for disallowing certain dates

Open bahrus opened this issue 8 years ago • 3 comments

It would be fantastic if you added support for disallowing certain date selections.

The most prominent examples would be disallowing selecting a weekend date. Also, being able to set a max and min date from which the range must come (i.e. can't choose anything before June 1, 2017, or after August 5, 2017).

bahrus avatar Jul 26 '17 22:07 bahrus

Hello @bahrus,

I have added min and max properties and also a disabled-days property. You can see the updated demo : here

RoXuS avatar Aug 01 '17 09:08 RoXuS

It would also be nice if the user would not be able to choose a year after the max or before the min date in the year dropdown (or click via the chevron buttons)

loekup avatar Aug 01 '17 12:08 loekup

Looks great! Feel free to close (from my point of view).

bahrus avatar Aug 01 '17 21:08 bahrus