-
Book Overview & Buying
-
Table Of Contents
Web Development with Blazor - Fourth Edition
By :
There are many HTML form elements, and we can use them all in Blazor. In the end, what Blazor outputs is HTML.
Blazor does have components that enhance functionality, so we can use them instead of HTML elements because they provide additional functionality.
Blazor offers the following input components:
EditFormInputBase<>InputCheckboxInputDate<TValue>InputNumber<TValue>InputSelect<TValue>InputTextInputTextAreaInputRadioInputRadioGroupInputFileValidationMessageValidationSummaryLet's go through them all in the next sections.
EditForm renders as a form tag, but it has a lot more functionality.
Unlike traditional form tags, where you need to create an action or method, Blazor's EditForm will create an EditContext instance as a cascading value so that all the components you put inside EditForm will access the same EditContext. EditContext tracks the metadata regarding the editing process, such as which fields...