View Source Exzeitable.HTML.Pagination (Exzeitable v0.6.4)

For building out the pagination buttons above and below the table

Summary

Functions

Builds the pagination selector with page numbers, next and back etc.

Selects the page buttons we need for pagination

A partial page is still a page.

Types

@type name() :: :next | :previous | :dots | pos_integer()
@type page() :: pos_integer()
@type pages() :: pos_integer()

Functions

@spec build(Exzeitable.Params.t()) :: {:safe, iolist()}

Builds the pagination selector with page numbers, next and back etc.

Link to this function

filter_pages(pages, page)

View Source
@spec filter_pages(pos_integer(), pos_integer()) :: [pos_integer() | :dots]

Selects the page buttons we need for pagination

@spec page_count(Exzeitable.Params.t()) :: pages()

A partial page is still a page.