Hy everyone,
in order to manage the validation of my fields, I use the "OnBlur" method.
<div class="row">
<div class="col-12 text-start">
<SfTextBox Placeholder="EMail" FloatLabelType="FloatLabelType.Always" ID="EMail" @bind-Value="@login!.EMail" Blur="@ValidateUser"></SfTextBox>
<ValidationMessage For="@(() => login.EMail)" />
</div>
</div>
<div class="row">
<div class="col-12 mt-2 text-start">
<SfTextBox Placeholder="Mot de passe" FloatLabelType="FloatLabelType.Always" ID="Password" @bind-Value="@login!.Password" Type="InputType.Password" Blur="@ValidateUser"></SfTextBox>
<ValidationMessage For="@(() => login.Password)" />
</div>
</div>
I thought that with the "Args" I could have the name of the control but I can't find it :(
private async Task ValidateUser(FocusOutEventArgs args)
{
}
Can you help me ?
Thx
Geff