forked from CodeBeamOrg/CodeBeam.MudBlazor.Extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSelectExtendedExample9.razor
More file actions
29 lines (26 loc) · 1.32 KB
/
SelectExtendedExample9.razor
File metadata and controls
29 lines (26 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
@namespace MudExtensions.Docs.Examples
<MudGrid>
<MudItem xs="12" sm="8">
<MudStack>
<MudSelectExtended @bind-SelectedValues="@_values" Label="Select Overview" Virtualize="true" 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>
<MudSelectExtended @bind-SelectedValues="@_values" Label="Data Based" ItemCollection="_collection" Virtualize="true" MultiSelection="_multiselection" Clearable="_clearable" />
</MudStack>
</MudItem>
<MudItem xs="12" sm="4">
<MudStack Spacing="2">
<MudSwitchM3 @bind-Value="_multiselection" Color="Color.Secondary" Label="Multiselection" />
<MudSwitchM3 @bind-Value="_clearable" Color="Color.Secondary" Label="Clearable" />
</MudStack>
</MudItem>
</MudGrid>
@code {
private bool _multiselection = true;
private bool _clearable = false;
private string[] _collection = new string[] { "Foo", "Bar", "Fizz", "Buzz" };
private IEnumerable<string?> _values = new List<string?>() { "Foo" };
}