Aurora.Uix.Templates.Basic.Renderers.ManyToOne (Aurora UIX v0.1.4-rc.6)

Copy Markdown

Renders many-to-one association fields for Aurora UIX in Phoenix LiveView templates.

Key Features

  • Displays and manages single associated records
  • Groups and labels associated fields
  • Supports nested rendering of related fields
  • Handles both form and show modes
  • Manages label and layout_tree configuration for associations
  • Integrates with Aurora UIX context and helpers

Summary

Functions

Renders a many-to-one association field.

Functions

render(assigns)

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

Renders a many-to-one association field.

Parameters

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

Returns

Phoenix.LiveView.Rendered.t() - Rendered many-to-one association component.