2024-08-18 12:32:18 +02:00
|
|
|
@typeparam T
|
|
|
|
|
|
|
|
|
|
<MudButtonGroup Color="@this.Color" Variant="Variant.Filled">
|
|
|
|
|
@if (string.IsNullOrWhiteSpace(this.Icon))
|
|
|
|
|
{
|
|
|
|
|
<MudButton OnClick="() => this.OnClick(this.selectedValue)">
|
|
|
|
|
@this.SelectedValueName()
|
|
|
|
|
</MudButton>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<MudButton StartIcon="@this.Icon" OnClick="() => this.OnClick(this.selectedValue)">
|
|
|
|
|
@this.SelectedValueName()
|
|
|
|
|
</MudButton>
|
|
|
|
|
}
|
2026-10-28 13:28:30 +01:00
|
|
|
<MudMenu Icon="@Icons.Material.Filled.ArrowDropDown" Style="align-self: auto;" MaxHeight="@MenuDefaults.MAX_HEIGHT">
|
2024-08-18 12:32:18 +02:00
|
|
|
@foreach(var item in this.Items)
|
|
|
|
|
{
|
|
|
|
|
<MudMenuItem OnClick="() => this.SelectItem(item)">
|
|
|
|
|
@this.NameFunc(item)
|
|
|
|
|
</MudMenuItem>
|
|
|
|
|
}
|
|
|
|
|
</MudMenu>
|
|
|
|
|
</MudButtonGroup>
|