Scrivener.Page (scrivener v2.7.2)

A Scrivener.Page has 5 fields that can be accessed: entries, page_number, page_size, total_entries and total_pages.

page = MyApp.Module.paginate(params)

page.entries
page.page_number
page.page_size
page.total_entries
page.total_pages

Link to this section Summary

Link to this section Types

Specs

t() :: %Scrivener.Page{
  entries: list(),
  page_number: pos_integer(),
  page_size: integer(),
  total_entries: integer(),
  total_pages: pos_integer()
}

Specs

t(entry) :: %Scrivener.Page{
  entries: [entry],
  page_number: pos_integer(),
  page_size: integer(),
  total_entries: integer(),
  total_pages: pos_integer()
}