[DateTimePicker] Add Single Column Time Picker to DateTimePicker (dateTimeViewRenderers) #9207
Closed
2 tasks done
Labels
component: DateTimePicker
The React component.
component: pickers
This is the name of the generic UI component, not the React module!
enhancement
This is not a bug, nor a new feature
Duplicates
Latest version
Summary 馃挕
Our use case is for a DateTimePicker with a TimePicker that has single column.
The MultiSectionDigitalClock was recently adding to the DateTimePicker via
packages/x-date-pickers/src/dateTimeViewRenderers/dateTimeViewRenderers.tsx
#8946
However,
I think a function should be added to dateTimeViewRenderers.tsx for rendering a single column time with the DigitalClock.
See example code below.
Examples 馃寛
This example code, where I created new renderDesktopDateDigitalTimeView function works pretty well.
codesandbox example
Motivation 馃敠
We exclusively use a TimePicker with limited options, on the 1/2 hour. We do not need 4 clicks to pick the time. We want DateTimePicker that has a single column time dropdown. I was able to implement the feature in our code base.
Order ID 馃挸 (optional)
56150
The text was updated successfully, but these errors were encountered: