DynamicForm.Renderer.Components.ValidationSummary (DynamicForm v1.0.0)

Copy Markdown View Source

A summary of a changeset's validation errors, rendered above the form when the validation_summary attribute of DynamicForm.form/1 is set.

Modes:

  • "simple" — a generic message about filling out required fields
  • "detailed" — the generic message plus a list of specific field errors

Internal module — not part of the public API.

Summary

Functions

validation_summary(assigns)

Attributes

  • changeset (:any) (required) - The changeset whose errors are summarized.
  • mode (:string) (required) - "simple" or "detailed".
  • instance (:any) (required) - The instance, for field labels.