Aurora. Uix. Layout. CreateLayout
(Aurora UIX v0.1.4-rc.8)
Copy Markdown
Provides the auix_create_layout/2 macro to define reusable UI layouts.
Summary
Functions
Defines a reusable UI layout.
Functions
Defines a reusable UI layout.
This macro is the entry point for creating reusable layouts that can be later applied to a resource.
Parameters
opts(Keyword.t()) - Configuration options for the layout. Currently not used.do_block(Macro.t()|nil) - A block defining the layout using the layout DSL.
Returns
Macro.t() - A quoted expression that defines the layout.
Examples
defmodule MyApp.MyAwesomeLayout do
use Aurora.Uix.Layout
auix_create_layout do
form_layout do
section "My Section" do
inline [:name, :description]
end
end
index_columns [:name]
end
end