Aurora.Uix.Templates.Basic.Renderers.EmbedsOneRenderer (Aurora UIX v0.1.4-rc.1)

Copy Markdown

Renders embedded one-to-one associations within forms and show layouts.

Key Features

  • Supports embedded form fields with nested layouts.
  • Handles both form and show view rendering modes.
  • Integrates with Aurora UIX context and layout configuration.

Key Constraints

  • Requires field configuration with embedded resource information.
  • Layout must be available for the embedded resource.

Summary

Functions

Renders an embedded one-to-one field based on its configuration.

Functions

render(assigns)

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

Renders an embedded one-to-one field based on its configuration.

Parameters

  • assigns (map()) - LiveView assigns containing:
    • :auix (map()) - Aurora UIX context with form and layout configuration.
    • :field (map()) - Field definition with embedded resource information.

Returns

Phoenix.LiveView.Rendered.t() - Rendered embeds_one component or nested form fields.