Generic user intent model for views.
Intents separate presentation metadata from execution targets so the same declarative definition can be rendered in different component systems.
Summary
Functions
Executes an intent target when possible, otherwise returns a normalized runtime instruction tuple.
Returns the normalized UI presentation for an intent.
Normalizes an intent declaration.
Types
@type t() :: %AshSDUI.Intent{ component_override: String.t() | nil, confirm: boolean() | String.t() | nil, enabled_when: term(), icon: String.t() | nil, label: String.t(), loading_when: term(), name: atom(), placement: atom() | nil, refreshes: [atom()] | nil, requires_actor?: boolean(), source: term(), style: atom() | nil, target: term(), visible_when: atom() | nil }
Functions
@spec command( t() | struct() | map(), map() | keyword() | nil, map() | keyword() | nil ) :: {:ok, map()} | {:error, term()}
Executes an intent target when possible, otherwise returns a normalized runtime instruction tuple.
Returns the normalized UI presentation for an intent.
Normalizes an intent declaration.