date picker enabledDates #14201
-
It would be nice to have an |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @ricardosaracino, Thank you for your suggestion! In general, adding such a property would duplicate the functionality of setting the disabled dates, where obviously the non-disabled ones are enabled. We tend to avoid such duplications in the API, when the “reverse” could be achieved in a straightforward manner. Hence, I am wondering what are the specifics of your scenario that would require explicitly defining the enabled dates? I am asking this, as currently, it is considered that by providing various DateRangeDescriptors, any rage of dates could be disabled, again leaving the rest as enabled. It is worth noting that setting the minValue and maxValue properties would also disable any dates lesser or greater than the pointed, leaving the rest as enabled. This works in a straightforward way for a single range of enabled dates. For multiple ranges, one could leverage combinations of
I hope these suggestions help. If you require any further assistance on the matter, please, let us know. |
Beta Was this translation helpful? Give feedback.
Hi @ricardosaracino,
Thank you for your suggestion!
In general, adding such a property would duplicate the functionality of setting the disabled dates, where obviously the non-disabled ones are enabled. We tend to avoid such duplications in the API, when the “reverse” could be achieved in a straightforward manner.
Hence, I am wondering what are the specifics of your scenario that would require explicitly defining the enabled dates? I am asking this, as currently, it is considered that by providing various DateRangeDescriptors, any rage of dates could be disabled, again leaving the rest as enabled.
It is worth noting that setting the minValue and maxValue properties would also disable any …