FormBuilder
FreeBuilds a form from field definitions: text, email, password, number, date, text area, select, radio, check box and switch. It validates required fields, email format and number limits with localized messages and focuses the first problem.
Example

Parameters
| Parameter | Type | Description |
|---|---|---|
Actions | RenderFragment | Extra buttons next to the submit button. |
Class | string | Extra CSS classes added to the root element. |
Fields | IEnumerable<FormField> | FormField(id, label, kind, required, options, placeholder, help, min, max, lines) items. |
Style | string | Inline style added to the root element. |
SubmitText | string | Text of the submit button. |
Values | IDictionary<string, Object> | Dictionary with the values, filled in as the user types. Optional; supply it to preset values. |
Events
| Event | Type | Description |
|---|---|---|
OnSubmit | EventCallback<IReadOnlyDictionary<string, Object>> | Raised with the values when every field is valid. |
Package
FormBuilder is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.
Send feedbackVersion 1.0.3