MudList: Implement selection modes Single-, Toggle- and MultiSelection#8775
MudList: Implement selection modes Single-, Toggle- and MultiSelection#8775henon merged 11 commits intoMudBlazor:devfrom
Conversation
|
@mckaragoz FYI, this implements multiselection like you suggested. Is it OK that the nesting items are not selectable themselves in multiselection or what do you say? |
|
Having the nesting items selectable would be a big help to easily to select al sub-items, |
|
So I guess the best way would be to add |
|
We may leave it at nesting items being only for nesting/grouping, not selection. Neither Vuetify nor MUI have such functionality, and I guess for good reason. |
# Conflicts: # src/MudBlazor/Base/MudComponentBase.cs # src/MudBlazor/Components/Menu/MudMenu.razor
|
If you look at MUI there are a couple of cool things a list can do, such as show the checkboxes either left or right, or show a switch instead of checkboxes. The most promising way to implement all these things (as well as tri-state checkboxes for selecting on/off all nested items) would be to implement special list items, i.e. a MudListSwitchActionItem. That's gonna be a project for a future PR though. |
danielchalmers
left a comment
There was a problem hiding this comment.
Haven't ran it but LGTM. Glad to see standardization
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #8775 +/- ##
==========================================
+ Coverage 89.82% 90.02% +0.19%
==========================================
Files 412 421 +9
Lines 11878 12286 +408
Branches 2364 2437 +73
==========================================
+ Hits 10670 11061 +391
+ Misses 681 671 -10
- Partials 527 554 +27 ☔ View full report in Codecov by Sentry. |
|
@ScarletKuro do you still want to review this? |
src/MudBlazor.Docs/Pages/Components/List/Examples/ListSingleSelectionExample.razor
Outdated
Show resolved
Hide resolved
|
added to v7.0.0 Migration Guide #8447 |


Description
Adds
SelectionModelike inMudChipSet,MudTreeViewandMudButtonGroupRenames parameter
AdornmentColortoExpandIconColorRenames parameter
OnClickHandlerPreventDefaulttoOnClickPreventDefaultHow Has This Been Tested?
unit | visually
Type of Changes
Checklist
dev).