AshSDUI.Layout.Node (ash_sdui v0.2.0)

Copy Markdown View Source

Definition-time layout node used by AshSDUI.Layout and AshSDUI.Layout.Builder.

This struct is intentionally distinct from %AshSDUI.Renderer.TreeNode{}: Node is authored or persisted, while TreeNode is the render-ready shape consumed by AshSDUI.Components.SDUIRoot.

Summary

Types

t()

@type t() :: %AshSDUI.Layout.Node{
  binding: atom() | nil,
  children: [t()],
  component: String.t(),
  id: term(),
  order: integer(),
  refresh: term(),
  region: atom(),
  state_key: atom() | String.t() | [atom() | String.t()] | nil,
  static_props: map() | nil,
  subject_id: String.t() | nil,
  subject_resource: String.t() | nil,
  variant: atom() | String.t() | nil
}