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

Link to this section Summary

Callbacks

Defines the feature icon

Defines the feature title

Defines the feature type

Link to this section Functions

Link to this function

fetch_feature!(conn, admin, id)

View Source

Specs

fetch_feature!(conn :: Plug.Conn.t(), admin :: atom(), id :: [atom()]) ::
  module()
Link to this function

get_icon(conn, admin, id)

View Source
Link to this function

get_title(conn, admin, id)

View Source
Link to this function

get_type(conn, admin, id)

View Source

Link to this section Callbacks

Specs

icon() :: String.t() | nil

Defines the feature icon

Specs

title() :: String.t()

Defines the feature title

Specs

type() :: module()

Defines the feature type