scrivener v1.1.3 API Reference
Modules
Scrivener allows you to paginate your Ecto queries. It gives you useful information such as the total number of pages, the current page, and the current page’s entries. It works nicely with Phoenix as well
A Scrivener.Config
can be created with a page_number
, a page_size
and a repo
A Scrivener.Page
has 5 fields that can be accessed: entries
, page_number
, page_size
, total_entries
and total_pages