View Source ExTeal.Card behaviour (ExTeal v0.28.1)

Represents a Card that can be displayed on a dashboard or resource

Summary

Types

@type t() :: %ExTeal.Card{
  component: term(),
  only_on_detail: term(),
  only_on_index: term(),
  options: term(),
  title: term(),
  width: term()
}

Callbacks

@callback component() :: String.t()
@callback only_on_detail(Plug.Conn.t()) :: bool()
@callback only_on_index(Plug.Conn.t()) :: bool()
@callback options(Plug.Conn.t()) :: map()
@callback width() :: String.t()

Functions