|
6 | 6 |
|
7 | 7 | <div tabindex="0" @attributes="UserAttributes" id="@ItemId" class="@Classname" @onclick="@(((MudListExtended?.Clickable == true || NestedList != null) && IsFunctional == false) ? OnClickHandler : OnlyOnClick)" @onclick:stopPropagation="@OnClickStopPropagation" style="@Style"> |
8 | 8 |
|
9 | | - @if (MudListExtended?.ItemDisabledTemplate != null && Disabled == true) |
| 9 | + @if (MudListExtended?.ItemDisabledTemplate != null && GetDisabledStatus() == true) |
10 | 10 | { |
11 | 11 | @MudListExtended.ItemDisabledTemplate(this) |
12 | 12 | } |
|
26 | 26 | <div class="@MultiSelectClassName"> |
27 | 27 | @if (OverrideMultiSelectionComponent == null ? MudListExtended?.MultiSelectionComponent == MultiSelectionComponent.CheckBox : OverrideMultiSelectionComponent.Value == MultiSelectionComponent.CheckBox) |
28 | 28 | { |
29 | | - <MudCheckBox Color="@MudListExtended.Color" Disabled="@Disabled" @bind-Checked="_selected" @onclick="OnClickHandler" Dense="true" /> |
| 29 | + <MudCheckBox Color="@MudListExtended.Color" Disabled="@GetDisabledStatus()" @bind-Checked="_selected" @onclick="OnClickHandler" Dense="true" /> |
30 | 30 | } |
31 | 31 | else if (OverrideMultiSelectionComponent == null ? MudListExtended?.MultiSelectionComponent == MultiSelectionComponent.Switch : OverrideMultiSelectionComponent.Value == MultiSelectionComponent.Switch) |
32 | 32 | { |
33 | | - <MudSwitch Color="@MudListExtended.Color" Disabled="@Disabled" @bind-Checked="_selected" @onclick="OnClickHandler" OnClickStopPropagation="true" /> |
| 33 | + <MudSwitch Color="@MudListExtended.Color" Disabled="@GetDisabledStatus()" @bind-Checked="_selected" @onclick="OnClickHandler" OnClickStopPropagation="true" /> |
34 | 34 | } |
35 | 35 | else if (OverrideMultiSelectionComponent == null ? MudListExtended?.MultiSelectionComponent == MultiSelectionComponent.SwitchM3 : OverrideMultiSelectionComponent.Value == MultiSelectionComponent.SwitchM3) |
36 | 36 | { |
37 | | - <MudSwitchM3 Class="mr-4" Color="@MudListExtended.Color" Disabled="@Disabled" @bind-Checked="_selected" @onclick="OnClickHandler" OnClickStopPropagation="true" /> |
| 37 | + <MudSwitchM3 Class="mr-4" Color="@MudListExtended.Color" Disabled="@GetDisabledStatus()" @bind-Checked="_selected" @onclick="OnClickHandler" OnClickStopPropagation="true" /> |
38 | 38 | } |
39 | 39 | </div> |
40 | 40 | } |
|
73 | 73 | <div class="@MultiSelectClassName"> |
74 | 74 | @if (OverrideMultiSelectionComponent == null ? MudListExtended?.MultiSelectionComponent == MultiSelectionComponent.CheckBox : OverrideMultiSelectionComponent.Value == MultiSelectionComponent.CheckBox) |
75 | 75 | { |
76 | | - <MudCheckBox Color="@MudListExtended.Color" Disabled="@Disabled" @bind-Checked="_selected" @onclick="OnClickHandler" Dense="true" /> |
| 76 | + <MudCheckBox Color="@MudListExtended.Color" Disabled="@GetDisabledStatus()" @bind-Checked="_selected" @onclick="OnClickHandler" Dense="true" /> |
77 | 77 | } |
78 | 78 | else if (OverrideMultiSelectionComponent == null ? MudListExtended?.MultiSelectionComponent == MultiSelectionComponent.Switch : OverrideMultiSelectionComponent.Value == MultiSelectionComponent.Switch) |
79 | 79 | { |
80 | | - <MudSwitch Color="@MudListExtended.Color" Disabled="@Disabled" @bind-Checked="_selected" @onclick="OnClickHandler" OnClickStopPropagation="true" /> |
| 80 | + <MudSwitch Color="@MudListExtended.Color" Disabled="@GetDisabledStatus()" @bind-Checked="_selected" @onclick="OnClickHandler" OnClickStopPropagation="true" /> |
81 | 81 | } |
82 | 82 | else if (OverrideMultiSelectionComponent == null ? MudListExtended?.MultiSelectionComponent == MultiSelectionComponent.SwitchM3 : OverrideMultiSelectionComponent.Value == MultiSelectionComponent.SwitchM3) |
83 | 83 | { |
84 | | - <MudSwitchM3 Color="@MudListExtended.Color" Disabled="@Disabled" @bind-Checked="_selected" @onclick="OnClickHandler" OnClickStopPropagation="true" /> |
| 84 | + <MudSwitchM3 Color="@MudListExtended.Color" Disabled="@GetDisabledStatus()" @bind-Checked="_selected" @onclick="OnClickHandler" OnClickStopPropagation="true" /> |
85 | 85 | } |
86 | 86 | </div> |
87 | 87 | } |
|
99 | 99 | { |
100 | 100 | <CascadingValue Value="this" IsFixed="true"> |
101 | 101 | <MudCollapse Expanded="@Expanded" ExpandedChanged="@ExpandedChanged"> |
102 | | - <MudListExtended T="T" Clickable="MudListExtended?.Clickable ?? false" Color="MudListExtended?.Color ?? Color.Primary" MultiSelection="MudListExtended?.MultiSelection ?? false" MultiSelectionComponent="MudListExtended?.MultiSelectionComponent ?? MultiSelectionComponent.CheckBox" MultiSelectionAlign="MudListExtended?.MultiSelectionAlign ?? Align.Start" DisablePadding="true" Class="mud-nested-list" Disabled="@Disabled" Dense="@((Dense ?? MudListExtended?.Dense) ?? false)"> |
| 102 | + <MudListExtended T="T" Clickable="MudListExtended?.Clickable ?? false" Color="MudListExtended?.Color ?? Color.Primary" MultiSelection="MudListExtended?.MultiSelection ?? false" MultiSelectionComponent="MudListExtended?.MultiSelectionComponent ?? MultiSelectionComponent.CheckBox" MultiSelectionAlign="MudListExtended?.MultiSelectionAlign ?? Align.Start" DisablePadding="true" Class="mud-nested-list" Disabled="@GetDisabledStatus()" Dense="@((Dense ?? MudListExtended?.Dense) ?? false)"> |
103 | 103 | <ChildContent> |
104 | 104 | @NestedList |
105 | 105 | </ChildContent> |
|
0 commit comments