Parent DSL for standalone SDUI resource annotation modules.
This module enables the sdui do...end block in non-Ash modules that exist
solely to declare UI metadata for a domain resource.
Usage
defmodule MyApp.UI.Resources.PlayerUI do
use AshSDUI.Resource.Standalone
sdui do
for_resource MyApp.Player
default_component "Player.Card@v1"
view :index, recipe: :collection, read_action: :read
ui_intent :create, style: :primary, target: {:navigate, "/players/new"}
ui_field :name, label: "Player Name"
end
endOptions
:extensions(list of module that adoptsSpark.Dsl.Extension) - A list of DSL extensions to add to theSpark.Dsl:otp_app(atom/0) - The otp_app to use for any application configurable options:fragments(list ofmodule/0) - Fragments to include in theSpark.Dsl. See the fragments guide for more.