Summary
In this chapter, we have covered some important topics in client-side software development: forms, data submission, and validation. We went over the basic definitions of forms and introduced the EditForm component in Blazor. Then, we reviewed the built-in input components in Blazor. After that, we covered the concept of validation and the DataAnnotationsValidator, ValidationSummary, and ValidationMessage components. Finally, we showed an example of how to develop our own custom input component. With these topics covered, you should have learned the following:
- Why we need forms and how they work
- How to develop a basic form using the
EditFormcomponent in Blazor - How to use the built-in input components available in Blazor
- How to validate the input of the user using data annotation validators and view the result in the UI
- How to develop a custom input component for advanced cases where the built-in components aren’t suitable
In the next chapter...