AdminElf.Admin behaviour (admin_elf v0.4.3) View Source

Link to this section Summary

Link to this section Types

Specs

features_map() :: %{required(atom()) => module() | features_map()}

Specs

menu_definition() :: [menu_item()]

Specs

menu_item() ::
  %{type: :dashboard}
  | %{type: :feature, feature: String.t()}
  | %{
      type: :group,
      title: String.t(),
      icon: String.t() | nil,
      features: [[atom()]]
    }

Link to this section Callbacks

Specs

features(conn :: Plug.Conn.t()) :: features_map()

Specs

menu(conn :: Plug.Conn.t()) :: menu_definition()

Specs

title() :: String.t()