DevJoy.Scene.Menu (DevJoy v2.0.0)
View SourceThe menu is visually represented as a titled list with buttons for navigating between the different scenes and their parts.
Usage
The menu always requires its title
and possible choices.
You can also optionally specify additional data.
defmodule MyApp.SceneName do
use DevJoy.Scene
part :menu do
menu "Menu title" do
choice "Menu item content", goto(:part_name)
end
end
endSummary
Field types
The type representing the additional data for the menu.
The type representing the title of the menu.