-
Notifications
You must be signed in to change notification settings - Fork 417
[DateTimePicker] Add month picker selection only #1993
Copy link
Copy link
Open
Labels
status:working-on-itKnown issue / feature being addressed. Will use other "status:*" labels & comments for more detail.Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail.type:enhancementNew feature or enhancement of existing capabilityNew feature or enhancement of existing capability
Metadata
Metadata
Assignees
Labels
status:working-on-itKnown issue / feature being addressed. Will use other "status:*" labels & comments for more detail.Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail.type:enhancementNew feature or enhancement of existing capabilityNew feature or enhancement of existing capability
Type
Fields
Give feedbackNo fields configured for issues without a type.
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
DateTimePickeris based on Fluent UIDatePicker&Calendarcomponents, the control doesn't provide any option to customize it as a month picker.Steps to Reproduce
DateTimePickercontrol to a SPFx componentAdditional info
This enhancement idea has been raised from #1977.
The updates will be done in the
DateTimePicker.tsxfile. In the Fluent UIDatePickercomponent reference, thecalendarAsprop renders theCalendarcomponent only whenrestrictedDatesprop is filled, which is not suitable for the enhancement idea. TheCalendarcomponent will have to be updated with theisDayPickerVisibleprop, which will be set tofalsein order to make the calendar view displayed with months only.