RayCraftDocs
v1.0.3 raycraft.dev
On this page

FormBuilder

Free

Builds 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

FormBuilder control

Parameters

ParameterTypeDescription
ActionsRenderFragmentExtra buttons next to the submit button.
ClassstringExtra CSS classes added to the root element.
FieldsIEnumerable<FormField>FormField(id, label, kind, required, options, placeholder, help, min, max, lines) items.
StylestringInline style added to the root element.
SubmitTextstringText of the submit button.
ValuesIDictionary<string, Object>Dictionary with the values, filled in as the user types. Optional; supply it to preset values.

Events

EventTypeDescription
OnSubmitEventCallback<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.