Aurora.Uix.Templates.Basic.Renderers.FieldRenderer (Aurora UIX v0.1.4-rc.0)

Copy Markdown

Renders form fields for Aurora UIX, supporting standard, one-to-many, many-to-one, hidden, and custom field types.

Key Features

  • Dynamically renders fields based on type and configuration
  • Delegates to association renderers for one-to-many and many-to-one fields
  • Supports custom field renderers
  • Handles omitted and hidden fields gracefully
  • Integrates with Aurora UIX context and helpers

Summary

Functions

Renders a form field based on its type and configuration.

Functions

render(assigns)

@spec render(map()) :: Phoenix.LiveView.Rendered.t()

Renders a form field based on its type and configuration.

Parameters

  • assigns (map()) - LiveView assigns containing:
    • :auix (map()) - Aurora UIX context with configuration.
    • :field (map()) - Field configuration and metadata.

Returns

Phoenix.LiveView.Rendered.t() - The rendered field component.