[DateTimePicker] Add month picker selection only #1993
Labels
status:working-on-it
Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail.
type:enhancement
New feature or enhancement of existing capability
Category
[x] Enhancement
[ ] Bug
[ ] Question
Version
Please specify what version of the library you are using: [3.21.0]
Expected / Desired Behavior / Question
We should be able to select a whole month instead of a single date.
Observed Behavior
Even if the
DateTimePicker
is based on Fluent UIDatePicker
&Calendar
components, the control doesn't provide any option to customize it as a month picker.Steps to Reproduce
DateTimePicker
control to a SPFx componentAdditional info
This enhancement idea has been raised from #1977.
The updates will be done in the
DateTimePicker.tsx
file. In the Fluent UIDatePicker
component reference, thecalendarAs
prop renders theCalendar
component only whenrestrictedDates
prop is filled, which is not suitable for the enhancement idea. TheCalendar
component will have to be updated with theisDayPickerVisible
prop, which will be set tofalse
in order to make the calendar view displayed with months only.The text was updated successfully, but these errors were encountered: