CodeBeamOrg / CodeBeam.MudBlazor.Extensions

Useful third party extension components for MudBlazor, from the contributors.
https://mudextensions.codebeam.org/
MIT License
348 stars 60 forks source link

[MudListExtended] How to implement indeterminate state? #352

Closed Arsync closed 3 months ago

Arsync commented 3 months ago

MudCheckbox has indeterminate state. In some cases MudList must have that state with "half-selected items". As for example, popup of adding videos to Youtube playlists - if any of selected videos has been added previously to playlist B, playlist B becomes indeterminate state for other videos selected.

2024-02-01_23-12-19

mckaragoz commented 3 months ago

Does list item have sub items? If no you can add your own icon.

Arsync commented 3 months ago

As the workaround, it can be just a set of MudCheckBox items in foreach instead of MudList. Seems, to implement that on MudList, there must be Selected property on MudListItem with two-way binding to data item property Selected (nullable).