ng2-ui / datetime-picker

Angular2 DateTime Picker
https://ng2-ui.github.io/#/datetime-picker
MIT License
121 stars 62 forks source link

Enhancement: `enabled-dates` attribute #225

Open dextermb opened 6 years ago

dextermb commented 6 years ago

Hey,

I would like to see the enabled-dates attribute added to this component to make it easier to disable a large number of dates. I current only want to enable Saturdays, or a select few Saturdays.

With the current functionality of the component I would have to generate a reasonable amount of dates to pass into disabled-dates which doesn't seem to be efficient.

If, for whatever reason, adding enabled-dates is out of scope I would like there to be an EventEmitter when changing year/month, this way I can generate a months worth of disabled dates at a time.

Current behavior

Expected/desired behavior

Other information