1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2024-10-17 12:42:51 +02:00
Minecraft-Phantom-Panel/Server/Phantom.Server.Web.Components/Forms/FormSelectInput.razor

18 lines
546 B
Plaintext

@typeparam TValue
@using System.Diagnostics.CodeAnalysis
@inherits Phantom.Server.Web.Components.Forms.Base.FormInputBase<TValue>
<FormLabel Id="@Id" Label="@Label" LabelFragment="@LabelFragment" />
<InputSelect Value="@Value" ValueChanged="@ValueChanged" ValueExpression="@ValueExpression" AdditionalAttributes="@GetAttributes("form-select")">
@ChildContent
</InputSelect>
<ValidationMessage For="@ValueExpression" class="invalid-feedback" />
@code {
[Parameter]
[DisallowNull]
public RenderFragment? ChildContent { get; set; }
}