sp-dev-fx-controls-react icon indicating copy to clipboard operation
sp-dev-fx-controls-react copied to clipboard

DateTimePicker: disable array of dates - "blackout" dates

Open mtburkett opened this issue 4 years ago • 3 comments

Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your needs please complete the below template to ensure we have the details to help. Thanks!

Please check out the documentation to see if your question is already addressed there. This will help us ensure our documentation is up to date.

Category

[X] Enhancement

[ ] Bug

[ ] Question

Version

Please specify what version of the library you are using: [ 6.13.4 ]

Expected / Desired Behavior / Question

I would like to be able to pass an array of dates into the DateTimePicker control and have them become unselectable or disabled in the UI. SImilar to https://eonasdan.github.io/bootstrap-datetimepicker/

Observed Behavior

This functionality does not currently exist or is undocumented.

Thanks!

mtburkett avatar Mar 27 '20 15:03 mtburkett

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Mar 27 '20 15:03 ghost

Hi @mtburkett,

FYI the control uses the Fluent UI DatePicker which can be definitely enhanced with a new prop that could target the component's prop calendarProps in the end.

michaelmaillot avatar Sep 08 '23 01:09 michaelmaillot

The pull request with support for this enhancement has now been merged and the new feature should be available within the beta release shortly (after a few minutes)

joelfmrodrigues avatar Feb 12 '24 22:02 joelfmrodrigues