View Source AdminElf.Feature behaviour (admin_elf v1.1.0)

Summary

Callbacks

Defines the feature icon

Defines the feature title

Defines the feature type

Callbacks

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

Defines the feature icon

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

Defines the feature title

@callback type() :: module()

Defines the feature type

Functions

Link to this function

fetch_feature!(conn, admin, id)

View Source
@spec 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