View Source ExCell.Adapter behaviour (ExCell v0.1.1)

An ExCell Adapter defines the way the adapter outputs its HTML. The adapter requires a function called adapter that accepts a map container name, attributes, params and the content. It should return a Phoenix.HTML safe string.

Summary

Types

@type html() :: {:safe, list()}
@type options() :: %{
  name: String.t(),
  attributes: list(),
  params: map(),
  content: String.t() | {:safe, list()}
}

Callbacks

@callback container(options :: options()) :: html()