MishkaGervaz.Form.Dsl.Identity (MishkaGervaz v0.0.1-alpha.3)

Copy Markdown View Source

Identity section — naming and routing for a form.

Every form must declare an identity. name is required and is used as the LiveComponent id and as the lookup key for Info.Form accessors; route powers post-save redirects; stream_name defaults to a value derived from name when omitted.

Example

identity do
  name :form_post
  route "/admin/posts"
  stream_name :form_post_stream
end

Summary

Functions

Returns the identity section definition.

Functions

section()

Returns the identity section definition.