mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-24 22:42:53 +01:00
33 lines
843 B
Plaintext
33 lines
843 B
Plaintext
@typeparam TValue
|
|
@using System.Diagnostics.CodeAnalysis
|
|
@inherits FormInputBase<TValue>
|
|
|
|
<FormLabel Id="@Id" Label="@Label" LabelFragment="@LabelFragment" />
|
|
|
|
@if (GroupContent == null) {
|
|
<InputSelect Value="@Value" ValueChanged="@ValueChanged" ValueExpression="@ValueExpression" AdditionalAttributes="@GetAttributes("form-select")">
|
|
@ChildContent
|
|
</InputSelect>
|
|
}
|
|
else {
|
|
<div class="input-group">
|
|
<InputSelect Value="@Value" ValueChanged="@ValueChanged" ValueExpression="@ValueExpression" AdditionalAttributes="@GetAttributes("form-select")">
|
|
@ChildContent
|
|
</InputSelect>
|
|
@GroupContent
|
|
</div>
|
|
}
|
|
|
|
<FormValidationMessage For="@ValueExpression" />
|
|
|
|
@code {
|
|
|
|
[Parameter]
|
|
[DisallowNull]
|
|
public RenderFragment? ChildContent { get; set; }
|
|
|
|
[Parameter]
|
|
public RenderFragment? GroupContent { get; set; }
|
|
|
|
}
|