View Source Fermo.Pagination behaviour (Fermo v0.18.0)

Summary

Types

@type t() :: %Fermo.Pagination{
  base: String.t(),
  first: String.t(),
  items: Array.t(),
  page: integer(),
  per_page: integer(),
  suffix: String.t(),
  total_items: integer()
}

Callbacks

Link to this callback

paginate(map, t, map, map, function)

View Source
@callback paginate(map(), String.t(), map(), map(), function()) :: map()

Functions

Link to this function

paginatable?(pagination)

View Source
Link to this function

paginate(config, template, options \\ %{}, context \\ %{}, fun \\ nil)

View Source
Link to this function

to_page(pagination, page)

View Source