Skip to content

FieldRenderer

Overview

Resolves and renders a single form field and its widget for a given formModelName key. It reads the field and widget components, props, and slot configuration from a formModel context object, then composes them into the correct layout with override slots passed through from the parent.

Props

NameTypeRequiredDefaultDescription
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
objectGridFieldSlotPropsobject{}
fieldsetStackedInlinePropsobject{}
formModelNamestringyes
fieldPropsobject{}
widgetPropsobject{}
formModelimport("@vueda/use/useFormModel.js").UseFormModelStateyes
hiddenbooleanundefined
isFilterbooleanfalse

Slots

NameScopedDescription
field(fieldName)yesOverride the entire rendered output for a specific field; receives all field and widget context as bindings.
field(fieldName)defaultyesOverride the default field body (anchor link + widget wrapper) for a specific field.
widget(fieldName)yesOverride the entire widget area for a specific field.
widget(fieldName)defaultyesOverride the widget's default slot content for a specific field.

Full slot reference

Source

client/lib/form/form-model/FieldRenderer.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2