View Source Exzeitable.HTML.Pagination (Exzeitable v0.6.0)
For building out the pagination buttons above and below the table
Link to this section 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.
Link to this section Types
@type name() :: :next | :previous | :dots | pos_integer()
@type page() :: pos_integer()
@type pages() :: pos_integer()
Link to this section Functions
@spec build(Exzeitable.Params.t()) :: {:safe, iolist()}
Builds the pagination selector with page numbers, next and back etc.
@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.