Update 02_Pagination.md

Adding commonly used $FirstItem and $LastItem to the Template Variables list.
This commit is contained in:
RuthAdele 2020-09-14 21:26:33 +09:30 committed by GitHub
parent 13725d2f92
commit bd2f017557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -110,6 +110,8 @@ list.
| `$NextLink`, `$PrevLink` | They will return blank if there's no appropriate page to go to, so `$PrevLink` will return blank when you're on the first page. |
| `$CurrentPage` | Current page iterated on. |
| `$TotalPages` | The actual (limited) list of records, use in an inner loop |
| `$FirstItem` | Returns the number of the first item being displayed on the current page. This is useful for things like “displaying 10-20”. |
| `$LastItem` | Returns the number of the last item being displayed on this page. |
| `$TotalItems` | This returns the total number of items across all pages. |
| `$Pages` | Total number of pages. |
| `$PageNum` | Page number, starting at 1 (within `$Pages`) |