This is the cosmo-pagination Reference Manual, version 0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Tue Jul 15 04:50:29 2025 GMT+0.
The main system appears first, followed by any subsystem dependency.
cosmo-paginationCosmo framework pagination helper.
vindarel
GPL3
0.1
str (system).
serapeum (system).
log4cl (system).
src (module).
Modules are listed depth-first from the system components tree.
cosmo-pagination/srccosmo-pagination (system).
package.lisp (file).
pagination.lisp (file).
Files are sorted by type and then listed depth-first from the systems components trees.
cosmo-pagination/cosmo-pagination.asdcosmo-pagination/src/package.lispcosmo-pagination/src/pagination.lispcosmo-pagination/cosmo-pagination.asdcosmo-pagination (system).
cosmo-pagination/src/pagination.lispsrc (module).
make-pagination (function).
get-nb-pages (function).
Packages are listed by definition order.
cosmo/paginationcommon-lisp.
make-pagination (function).
get-nb-pages (function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
From a current page number, a total number of elements, a page size, return a dict with all of that, and the total number of pages.
Example:
(get-pagination :nb-elements 1001)
;; =>
(dict
:PAGE 1
:NB-ELEMENTS 1001
:PAGE-SIZE 200
:NB-PAGES 6
:TEXT-LABEL "Page 1 / 6"
)
Given a total number of elements and a page size, compute how many pages fit in there. (if there’s a remainder, add 1 page)
| Jump to: | F G M |
|---|
| Jump to: | F G M |
|---|
| Jump to: | C F M P S |
|---|
| Jump to: | C F M P S |
|---|