TimePicker: Added MinuteSelectionStep Parameter#7174
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## dev #7174 +/- ##
==========================================
- Coverage 90.71% 90.60% -0.11%
==========================================
Files 426 427 +1
Lines 15098 15162 +64
==========================================
+ Hits 13696 13738 +42
- Misses 1402 1424 +22
☔ View full report in Codecov by Sentry. |
|
Hi there, we discussed this in the team and we can see the use-case of a selection step for minute selection especially for intervals of say 5 minutes. However, the inanimous opinion is that the visualization of the clock should not change, no matter what the step is. By not touching the visualization this opens up the possibility to do away with the enum which we also don't feel like a good design choice (I am sure if we add this feature at some point in time somebody will need a time step that is not in the enum). So in essence, we'd be willing to add this feature if you make the following changes:
What do you say? |
|
Those changes sound good to me, I'll make the adjustments soon. |
2f3255e to
e6d6f27
Compare
|
I have completed the requested changes, it should be ready to go. |
|
Can you record a GIF using ScreenToGif and post here please? Thanks a lot |
src/MudBlazor.Docs/Pages/Components/TimePicker/TimePickerPage.razor
Outdated
Show resolved
Hide resolved
henon
left a comment
There was a problem hiding this comment.
Only minor changes, then this can be merged. Good job!
ScarletKuro
left a comment
There was a problem hiding this comment.
LGTM, just need to fix some minor things that @henon mentioned.
src/MudBlazor.UnitTests.Viewer/TestComponents/TimePicker/SimpleTimePickerTest.razor
Outdated
Show resolved
Hide resolved
9715daf to
52ebd87
Compare
52ebd87 to
fdf1a6e
Compare
|
@ScarletKuro I see the testrunner crashed. There is an updated sdk that fixes some core dump issues I'll update it although I guess rerunning this PR will work |
|
Thank you @Zingabopp ! |

Description
This PR adds the option to limit the step interval for minutes using the
MinuteSelectionStepparameter. The default behavior is the same.How Has This Been Tested?
Types of changes
Checklist:
dev).