Utilizing built-in input components
In this recipe, we’ll explore how quickly you can set up both simple and complex forms using Blazor’s native form support and built-in input components. The benefit of using Blazor lies in its ability to handle much of the heavy lifting involved in form creation, such as data binding, event handling, maintaining state, or parsing user input to expected values. You’re then free to focus on other aspects of the user interface.
Let’s showcase Blazor’s built-in input components by creating a comprehensive form where the system administrator provides a detailed definition of the events they are planning.
Getting ready
Before we build the event creator, do the following:
- Create a
Chapter06
/Recipe04
directory – this will be your working directory - Copy the
EventManager
andEventDurationForm
components from the Binding nested models to a form recipe or copy their implementation from theChapter06...