DataProvider.Pagination (DataProvider v1.0.0) View Source
Module, which implements business logic of separation data by
pages in DataProvider
.
Link to this section Summary
Types
Schema of DataProvider.Pagination
.
Functions
Creates new DataProvider.Pagination
struct with received params.
Calculates end position for received pagination.
Returns current page value of DataProvider
by DataProvider.Pagination
Returns size of page in current DataProvider.Pagination
of DataProvider
Changes the value of field page
Changes the value of field page_size
Returns count of items, which gonna be put load into DataProvider.Data
Calculates starting position for received pagination.
Link to this section Types
Specs
Schema of DataProvider.Pagination
.
Contains:
page
- Current page of dataprovider.page_size
- count of items in one page of data provider.
Link to this section Functions
Specs
Creates new DataProvider.Pagination
struct with received params.
By default, fields will be:
page
- @default_pagepage_size
- @default_page_size
Specs
Calculates end position for received pagination.
Requires for calculating selection limit in list of data.
Specs
Returns current page value of DataProvider
by DataProvider.Pagination
Specs
Returns size of page in current DataProvider.Pagination
of DataProvider
Specs
Changes the value of field page
Specs
Changes the value of field page_size
Specs
Returns count of items, which gonna be put load into DataProvider.Data
Specs
Calculates starting position for received pagination.
Requires for calculating start position in list of data or offset in query condition