Skip to content

Commit 0ea1c6a

Browse files
kenjissammyskills
andauthored
docs: fix by proofreading
Co-authored-by: Samuel Asor <8720569+sammyskills@users.noreply.github.com>
1 parent 066bbbd commit 0ea1c6a

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

user_guide_src/source/libraries/pagination.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,12 +320,16 @@ These methods return the page number for the previous or next pages in relation
320320
getFirstPageNumber() & getLastPageNumber()
321321
------------------------------------------
322322

323-
These methods return the page numbers to the first and last pages in the set of
324-
links to be displayed.
323+
These methods return the page numbers of the first and last pages in the set of
324+
links to be displayed. For example, if the set of links to be displayed is something like this::
325325

326-
.. note:: If you want to get the page numbers to the first and last pages in the
327-
result set, the first page number is always 1, and use `getPageCount()`_ to
328-
get the last page number.
326+
3 | 4 | 5 | 6 | 7
327+
328+
``getFirstPageNumber()`` will return 3 while ``getLastPageNumber()`` will return 7.
329+
330+
.. note:: To obtain the page numbers of the first and last pages in the entire
331+
result set, you can use the following approach: The first page number is always 1, and `getPageCount()`_ can be used to
332+
retrieve the last page number.
329333

330334
getCurrentPageNumber()
331335
----------------------

0 commit comments

Comments
 (0)