Aurora.Uix.Layout.Options.Show (Aurora UIX v0.1.4-rc.7)

Copy Markdown

Handles retrieval of options specific to :show layout tags.

Retrieves options for :show layouts, including dynamic and static page titles and subtitles. Delegates fallback option retrieval and error reporting to Aurora.Uix.Layout.Options.

Options

  • :page_title - The page title for the show layout.

    • Accepts a binary() (static title) or a function of arity 1 that receives assigns and expected to return a Phoenix.LiveView.Rendered.
    • Default: "{name} Details", where {name} is the capitalized schema name.
  • :page_subtitle - The page subtitle for the show layout.

    • Accepts a binary() or a function of arity 1 that receives assigns and expected to return a Phoenix.LiveView.Rendered.
    • Default: "Detail"
  • :record_navigator - Controls the display position of the record navigation bar.

    • Accepts an atom() (:top, :bottom) or a list of atoms [:top, :bottom].
    • Default: [:top, :bottom] - Shows the record navigation bar at both top and bottom.

Summary

Functions

get(assigns, option)

@spec get(map(), atom()) :: {:ok, term()} | {:not_found, atom()}

Callback implementation for Aurora.Uix.Layout.Options.get/2.