Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 810 Bytes

File metadata and controls

24 lines (13 loc) · 810 Bytes

Bs Input Control Common Behaviours

All the BlazorFormLayout input controls have the following common behaviours.

Validation

The controls all support validation using the Blazor EditForm validation functionality.

If you want to display validation error next to a BlazorFormLayout input control, you need to add the attribute ValidationFor="@(() => model.PropertyName)". For example

<BsText @bind-Value="@example.Name" Label="Your name" ValidationFor="@(() => example.Name)" />

TODO

Enable valid and invalid ? Enable Boostrap CSS translation?

You can also use the <ValidationSummary /> component anywhere within the EditForm.

Additional Attributes