Question
The DateRangeDescriptor class provides means to configure dates selection in following ways:
- BETWEEN two dates
- AFTER a date
- BEFORE a date
- SPECIFIC dates
- All WEEKENDS
- All WEEKDAYS
Why not being able to specify the following as well:
- All weekends BETWEEN two dates
- All weekdays BEETWEEN two dates
The above seems to require no API changes and only implementation changes to respect the range provided:
this.calendar.disabledDates = [
{ type: DateRangeType.Weekends, dateRange: range },
];
this.calendar.specialDates= [
{ type: DateRangeType.Weekdays, dateRange: range },
];
- All weekends/weekdays AFTER a date
- All weekends/weekdays BEFORE a date
Those two seem to require API changes, maybe passing a second type constraint:
this.calendar.specialDates= [
{ type: DateRangeType.Weekdays, dateRange: singleDate, secondConstraint: DateRangeType.After },
];
but seems to bring complexity that is not worth to handle I think.
Question
The
DateRangeDescriptorclass provides means to configure dates selection in following ways:Why not being able to specify the following as well:
The above seems to require no API changes and only implementation changes to respect the range provided:
Those two seem to require API changes, maybe passing a second type constraint:
but seems to bring complexity that is not worth to handle I think.