This is the cosmo-pagination Reference Manual, version 0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Jul 13 20:06:42 2025 GMT+0.
The main system appears first, followed by any subsystem dependency.
cosmo-pagination
Cosmo 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/src
cosmo-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.asd
cosmo-pagination/src/package.lisp
cosmo-pagination/src/pagination.lisp
cosmo-pagination/cosmo-pagination.asd
cosmo-pagination
(system).
cosmo-pagination/src/pagination.lisp
src
(module).
make-pagination
(function).
get-nb-pages
(function).
Packages are listed by definition order.
cosmo/pagination
common-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 |
---|