Aurora.Uix.Layout.Options.Form (Aurora UIX v0.1.0)

Handles retrieval of options specific to :form layout type for edit and new resource actions.

Retrieves options for form layouts, including dynamic and static edit/new titles and subtitles. Delegates fallback option retrieval and error reporting to Aurora.Uix.Layout.Options.

Options

  • :edit_title - The title for the edit form.

    • Accepts a binary() (static title) or a function of arity 1 that receives assigns and returns a Phoenix.LiveView.Rendered.
    • Default: "Edit {name}", where {name} is the resource name.
  • :edit_subtitle - The subtitle for the edit form.

    • Accepts a binary() or a function of arity 1 that receives assigns and returns a Phoenix.LiveView.Rendered.
    • Default: "Use this form to manage <strong>{title}</strong> records in your database", where {title} is the resource title.
  • :new_title - The title for the new resource form.

    • Accepts a binary() or a function of arity 1 that receives assigns and returns a Phoenix.LiveView.Rendered.
    • Default: "New {name}", where {name} is the resource name.
  • :new_subtitle - The subtitle for the new resource form.

    • Accepts a binary() or a function of arity 1 that receives assigns and returns a Phoenix.LiveView.Rendered.
    • Default: "Creates a new <strong>{name}</strong> record in your database", where {name} is the resource name.

For additional option behaviors and rendering details, see Aurora.Uix.Layout.Options.

Summary

Functions

get(assigns, option)

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

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