Skip to content

FieldWarningsList

Overview

Renders a warnings mapping keyed by field (the shape both get_warnings() and get_transition_warnings() return for a single object: {field: [messages]}, with non_field_errors for messages not tied to a field). non_field_errors renders first as a plain, unlabeled list; every other field renders inline (field: message) when it carries exactly one message, or as its own sub-header plus list when it carries more.

The entry slot overrides one field's entire layout (the header/list/inline decision included).

Theme entry: FieldWarningsList

Props

NameTypeRequiredDefaultDescription
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
messagesobjectyesWarnings keyed by field, non_field_errors for messages not tied to a field.
classimport('vue').HTMLAttributes['class']undefinedAdditional CSS classes applied to the root.

Slots

NameScopedDescription
entryyesOverride one field's entire layout. Receives field and messages (always an array). Falls back to the header/list/inline layout below.

Full slot reference

Source

client/lib/form/confirm/FieldWarningsList.vue

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