Skip to content
IzzyBlazor 0.1.0-alpha.17

Enter all results ↑ ↓ move Esc close

FieldFrame

The label, hint and errors around a control of your own.

IzzyBlazor.FieldFrame in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.17 assembly and its doc comments.

Properties (15)

Classstring?

Classes for the wrapper.

Stylestring?

Inline style for the wrapper.

Idstring?

The control's id, for the label's for.

LabelIdstring?

An id for the label, for controls that point to it with aria-labelledby.

Labelstring?

The label text.

HideLabelbool = false

Keeps the label for screen readers but doesn't show it.

Requiredbool = false

Whether the field is required: an asterisk, or no "(optional)", depending on the form's RequiredMark.

AnnounceRequiredbool = falseAdded in 0.1.0-alpha.13

Says "(required)" to screen readers after the label of a required field (Required), for controls that can't be marked required themselves, such as a group of checkboxes. Whatever the form's RequiredMark.

Hintstring?

Help text.

HintIdstring?

The hint element's id.

ErrorsIReadOnlyList<string>?

Validation messages.

ErrorIdstring?

The error element's id.

Groupbool = false

Renders a fieldset with a legend, for groups of controls such as radios.

LabelInControlbool = false

The control renders its own label (checkboxes and switches).

ChildContentRenderFragment?

The control.

Events (0)

No events.

Parts (2)

Components written inside FieldFrame, documented here with it.

FieldAddons

Attaches add-ons to the start or end of a field's control: text such as "https://" or "kg", a button, or another field such as a currency Select. Text fields have StartAddon and EndAddon; custom fields can wrap their own control in this to match.

StartAddonRenderFragment?

Content attached before the control.

EndAddonRenderFragment?

Content attached after the control.

ChildContentRenderFragment?

The control, usually an ib-field-control element.

FieldError<TValue>

Validation messages for one model property, for fields that are not IzzyBlazor fields. IzzyBlazor fields show their own errors.

Idstring?Added in 0.1.0-alpha.13

The element's id, for the control's aria-describedby.

ForExpression<Func<TValue>> required

The property whose messages to show.