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

22 lines
675 B
Plaintext

@inherits FormInputBaseDebounced<string>
<FormLabel Id="@Id" Label="@Label" LabelFragment="@LabelFragment" />
<InputFieldText @ref="FormField"
Type="@Type"
Value="@Value"
ValueChanged="@ValueChanged"
ValueExpression="@ValueExpression"
OnChange="@OnChangeDebounced"
OnBlur="@OnBlur"
AdditionalAttributes="@GetAttributes("form-control")" />
<FormValidationMessage For="@ValueExpression" />
@code {
[Parameter]
public FormTextInputType Type { get; set; } = FormTextInputType.Text;
protected override ICustomFormField FormField { get; set; } = null!;
}