Closed henon closed 2 weeks ago
@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, provided there's a checkbox on the nested item.
Ok, makes sense. Interestingly in the current implementation (single-selection only) it is impossible to select a nested list item. If you click it, it just toggles expansion.
So I guess the best way would be to add Selectable
to the items. If it is set, the nested item can be selected by a body click in single-selection as well as multiselection and can only be expanded by a click on the expand button. If unset, it behaves as before.
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.
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.
Attention: Patch coverage is 82.02247%
with 16 lines
in your changes are missing coverage. Please review.
Project coverage is 90.02%. Comparing base (
28bc599
) to head (02a1bc7
). Report is 126 commits behind head on dev.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@ScarletKuro do you still want to review this?
added to v7.0.0 Migration Guide #8447
Description
Adds
SelectionMode
like inMudChipSet
,MudTreeView
andMudButtonGroup
Renames parameter
AdornmentColor
toExpandIconColor
Renames parameterOnClickHandlerPreventDefault
toOnClickPreventDefault
How Has This Been Tested?
unit | visually
Type of Changes
Checklist
dev
).