Lavash.Form.Section (Lavash v0.3.0-rc.2)

Copy Markdown View Source

Struct representing a top-level form declaration.

A form encapsulates the full lifecycle of editing an Ash resource:

  • Captures params from events (implicitly creates ephemeral state)
  • Depends on a loaded record via argument declarations
  • Builds changesets for create/update
  • Provides Phoenix.HTML.Form for rendering
  • Supports submission via actions

Example:

form :form, resource: Product do
  argument :record, result(:product)
end