-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathSelectExtendedExample8.razor
More file actions
31 lines (28 loc) · 1.32 KB
/
SelectExtendedExample8.razor
File metadata and controls
31 lines (28 loc) · 1.32 KB
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.Docs.Examples
<MudGrid>
<MudItem xs="12" sm="8">
<MudStack>
<MudSelectExtended T="string" Label="Select Overview" Disabled="_disabled" ReadOnly="_readonly" MultiSelection="_multiselection" Clearable="_clearable">
<MudSelectItemExtended Value="@("Foo")" Text="Foo" />
<MudSelectItemExtended Value="@("Bar")" Text="Bar" />
<MudSelectItemExtended Value="@("Fizz")" Text="Fizz" />
<MudSelectItemExtended Value="@("Buzz")" Text="Buzz" />
</MudSelectExtended>
</MudStack>
</MudItem>
<MudItem xs="12" sm="4">
<MudStack Spacing="2">
<MudSwitchM3 @bind-Value="_disabled" Color="Color.Secondary" Label="Disabled" />
<MudSwitchM3 @bind-Value="_readonly" Color="Color.Secondary" Label="Readonly" />
<MudSwitchM3 @bind-Value="_multiselection" Color="Color.Secondary" Label="Multiselection" />
<MudSwitchM3 @bind-Value="_clearable" Color="Color.Secondary" Label="Clearable" />
</MudStack>
</MudItem>
</MudGrid>
@code {
private bool _disabled = false;
private bool _readonly = false;
private bool _multiselection = false;
private bool _clearable = false;
private string[] _collection = new string[] { "Foo", "Bar", "Fizz", "Buzz" };
}