new Pagination()
Creates a new pagination object with the given parameters
Parameters
Name | Type | Default |
---|---|---|
$props | array |
[ ] |
For the $props
parameter, you pass an array with the following data, which will be used to set up the Kirby\Toolkit\Pagination
object:
Name | Type | Description |
---|---|---|
limit | int |
Sets the number of items per page |
page | int |string |
Sets the current page |
total | int |
Sets the total number of items |