DataProvider.Pagination.Page (DataProvider v1.2.1) View Source
Struct module of pagination page
Types
The DataProvider.Pagination creates 4 type values for this module:
:regular- Regular page for navigation. Have integer number, greater than 0 and:activevalue astrueif:pageofDataProvider.Paginationequal for:numberofDataProvider.Pagination.Page:first- Page to fast move to first page in list. Can not be active, but contain:numberequal 1.:last- Page to fast move to last page in list. Can not be active. Page with this type has dynamic value ofnumber. The value of hisnumberis calculated count of possible pages.:separator- Page with no link and no validnumber. It's blank page, uses for separating the pages list only.
Active
The :active it is boolean value of activity state of page. By default, all pages active: false,
but this value can be true, when :page of DataProvider.Pagination and :number of
DataProvider.Pagination.Page are equal and :type of DataProvider.Pagination.Page is :regular.
Number
Integer value of page, by default - 0.
Title
The title of page, by default "...", but when :type is :regular, :first or :last - can contain
stringyfied value of :number.
Link to this section Summary
Types
The DataProvider.Pagination.Page struct module for :pages of DataProvider.Pagination
Link to this section Types
Specs
t() :: %DataProvider.Pagination.Page{
active: boolean(),
number: integer(),
title: String.t(),
type: atom()
}
The DataProvider.Pagination.Page struct module for :pages of DataProvider.Pagination
Fields
type- the type of page, atom, by default is:regular, can accept values::regular,:first,:last,:separatoractive- boolean value of active state of page, by default isfalsenumber- integer value with number of page, by default is 0title- string, the title of this page (it can be different than number) by default is "..."