Pagination
Pydantic model
- pydantic model iperon.contrib.pagination.Pagination
Show JSON schema
{ "title": "Pagination", "type": "object", "properties": { "current_page": { "title": "Current Page", "default": 1, "type": "integer" }, "previous_page": { "title": "Previous Page", "type": "integer" }, "next_page": { "title": "Next Page", "type": "integer" }, "total_page": { "title": "Total Page", "type": "integer" }, "total_counter": { "title": "Total Counter", "type": "integer" }, "limit": { "title": "Limit", "type": "integer" } } }
- Fields
- classmethod pagination(current_page: int, total_counter: int, limit: int = 50) iperon.contrib.pagination.Pagination
Forming a paging class
- Parameters
- Returns
Return Pagination object
- Return type