Skip to content

Commit 6690b9c

Browse files
committed
Updated readme
1 parent 68baec9 commit 6690b9c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ Main idea of this package is to build data source independent paginator, which h
2323
In this example you have an ability use `id` as skip value.
2424
As you can see, Loader function accepts `id` in `$skip` variable.
2525
It should be `id` of last item on previous page and it comes from client side.
26-
For 1st page it should be 0.
27-
It will use same logic for `$page->hasNext`, because it has no Counter param.
26+
For 1st page it should be 0.
27+
For `$page->hasNext` paginator will load `$perPage + 1` item,
28+
and then check if actual count of loaded items is more than `$perPage`.
2829

29-
Optionally, you can set `$currentPage` value, wich will be set to `$page->currentPage`.
30+
Optionally, you can set `$currentPage` value, which will be set to `$page->currentPage`.
3031

3132
- Count skip by id with total count
3233
```php

0 commit comments

Comments
 (0)