Paginator class
:property number_of_items_per_page: The default number of items per page
:type number_of_items_per_page: int
Attributes
page_info: PageInfo
results: List
Functions
Initialize self. See help(type(self)) for accurate signature.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
query | ModelSelect | ||
page | int | 0 | |
nb_of_items_per_page | int | 20 | |
nb_max_of_items_per_page | int | 100 |
Filter the current items in the paginators, the total count become approximate
greater than this value.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
filter_ | Callable | ||
min_nb_of_result | int | 0 | If provided, the query will be called multiple time until the number of result is `` |
Set a function that will be call on each element to convert the result element
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
map_result | Callable | _description_ [[paginatortype], any] |
Return type:
PageDTO |