DataProvider.Pagination.Params (DataProvider v1.2.1) View Source
Params module for DataProvider.Pagination
Fields
page_size
- Defines count of items in page.pages_ahead
- Param which define count of pages, which will be loaded after current page in list. NOTE: This param affectpages
ofDataProvider.Pagination
.pages_behind
- Param which define count of pages, which will be loaded before current page in list. NOTE: This param affectpages
ofDataProvider.Pagination
.load_first_page?
- Defines existings of the navigation to first page. If this param istrue
-pages
list of yourDataProvider.Pagination
gonna containDataProvider.Pagination.Page
which will point at first page (if it doesn't shown already). NOTE: This param affectpages
ofDataProvider.Pagination
.load_last_page
- Defines existings of the navigation to last page. If this param istrue
-pages
list of yourDataProvider.Pagination
gonna containDataProvider.Pagination.Page
which will point at last page (if it doesn't shown already). NOTE: This param affectpages
ofDataProvider.Pagination
.load_opening_separator
- Defines existings of the separator betweenregular
pages and first page item. If this param istrue
-pages
list of yourDataProvider.Pagination
gonna containDataProvider.Pagination.Page
which will not contain valid navigation params. It will just blank item. NOTE: This param affectpages
ofDataProvider.Pagination
.load_closing_separator
- Defines existings of the separator betweenregular
pages and last page item. If this param istrue
-pages
list of yourDataProvider.Pagination
gonna containDataProvider.Pagination.Page
which will not contain valid navigation params. It will just blank item. NOTE: This param affectpages
ofDataProvider.Pagination
.
Link to this section Summary
Types
Struct of params for DataProvider.Pagination
.
Functions
Creates new DataProvider.Paginations.Params
struct by received map
Returns page_size
value, if it's integer
Link to this section Types
Specs
t() :: %DataProvider.Pagination.Params{ load_closing_separator?: boolean(), load_first_page?: boolean(), load_last_page?: boolean(), load_opening_separator?: boolean(), page_size: integer(), pages_ahead: integer(), pages_behind: integer() }
Struct of params for DataProvider.Pagination
.
Fields
page_size
- Integer, by default is 15pages_ahead
- Integer, by default is 3pages_behind
- Integer, by default is 3load_first_page?
- Boolean, by default istrue
load_last_page
- Boolean, by default istrue
load_opening_separator
- Boolean, by default istrue
load_closing_separator
- Boolean, by default istrue
Link to this section Functions
Specs
Creates new DataProvider.Paginations.Params
struct by received map
Arguments
- Map with creation params
Returns
%DataProvider.Paginations.Params{
page_size: 15,
pages_ahead: 3,
pages_behind: 3,
load_first_page?: true,
load_last_page?: true,
load_opening_separator?: true,
load_closing_separator?: true
}
Specs
Returns page_size
value, if it's integer
Arguments
DataProvider.Paginations.Params
struct