View Source DevJoy.Scene.Menu (DevJoy v1.1.0)

Menu visually represented as a titled list of buttons allows to navigate between scenes and their parts.

Example

defmodule MyApp.SceneWithMenu do
  use DevJoy.Scene

  part :menu do
    menu "Menu title" do
      choice "Menu item content", goto(:part_name)
    end
  end
end

Summary

Types

t()

Menu struct

Title

Types

@type t() :: %DevJoy.Scene.Menu{
  choices: [DevJoy.Scene.Choice.t(String.t())],
  title: title()
}

Menu struct

@type title() :: String.t()

Title