mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-01 17:49:14 +00:00
19 lines
584 B
Plaintext
19 lines
584 B
Plaintext
@inherits ConfigurationBaseCore
|
|
@typeparam TConfig
|
|
|
|
<MudSelect T="TConfig" Value="@this.SelectedValue()" Strict="@true" ShrinkLabel="@true" Disabled="@this.IsDisabled" Margin="Margin.Dense" Class="rounded-lg mb-0" Underline="false" ValueChanged="@this.OptionChanged">
|
|
@foreach (var data in this.Data)
|
|
{
|
|
<MudSelectItem Value="@data.Value">
|
|
@if (this.ItemTemplate is null)
|
|
{
|
|
@data.Name
|
|
}
|
|
else
|
|
{
|
|
@this.ItemTemplate(data)
|
|
}
|
|
</MudSelectItem>
|
|
}
|
|
</MudSelect>
|