DevJoy.Scene.Part (DevJoy v2.0.0)
View SourceA part is a group of scene items Multiple parts within a scene can be used to separate scene content.
Usage
The part always requires its page title and items.
defmodule MyApp.SceneName do
use DevJoy.Scene
part :part_name do
# DSL for part items goes here
end
endNavigation tips
Summary
Field types
The type representing the additional data of the part.
The type representing the part's name.
The type representing the page's title.
Field types
Main
The part structure contains the following keys:
data- a keyword list of additional part dataname- a name of the partpage_title- a title of the pagescene- a scene module for the part
@type t() :: %DevJoy.Scene.Part{ data: data(), name: name(), page_title: page_title() | nil, scene: DevJoy.Scene.t() }
The type representing the part structure.