Search results

Validation

The TextBox supports three types of validation styles namely error, warning, and success. These states are enabled by adding corresponding classes .e-error, .e-warning, or .e-success to the input parent element.

@using Syncfusion.EJ2.Blazor.Inputs

<label>Success</label>
<EjsTextBox Placeholder="Enter your address" CssClass="e-success" ></EjsTextBox>

<label>Error</label>
<EjsTextBox Placeholder="Enter your address" CssClass="e-error"></EjsTextBox>

<label>Warning</label>
<EjsTextBox Placeholder="Enter your address" CssClass="e-warning"></EjsTextBox>

The output will be as follows.

textbox