forked from CodeBeamOrg/CodeBeam.MudBlazor.Extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSelectTest1.razor
More file actions
31 lines (24 loc) · 872 Bytes
/
SelectTest1.razor
File metadata and controls
31 lines (24 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@namespace MudExtensions.UnitTests.TestComponents
<MudPopoverProvider></MudPopoverProvider>
<MudSelectExtended T="string" @bind-Value="value" PopoverClass="select-popover-class" Disabled="@Disabled" onfocus="Focused" OnBlur="Blurred">
<MudSelectItemExtended Value="@("1")"/>
<MudSelectItemExtended Value="@("2")"/>
<MudSelectItemExtended Value="@("3")"/>
<MudSelectItemExtended Value="@("4")" Disabled="true"/>
</MudSelectExtended>
<MudSwitch @bind-Value="@_focused" />
@code {
public static string __description__ = "Click should open the Menu and selecting a value should update the bindable value.";
[Parameter]
public bool Disabled { get; set; }
string? value = null;
bool _focused = false;
private void Focused()
{
_focused = true;
}
private void Blurred()
{
_focused = false;
}
}