AshSDUI.LayoutRecipe behaviour (ash_sdui v0.2.0)

Copy Markdown View Source

Behaviour for converting resolved views into SDUI layout trees.

Recipes are the extensibility point behind higher-level layout names. The core package can ship convenient recipes, while applications can register their own without changing AshSDUI internals.

Summary

Callbacks

to_layout(t, keyword)

@callback to_layout(
  AshSDUI.View.t(),
  keyword()
) :: AshSDUI.Layout.Node.t()