(build-page-items current total siblings boundary)Returns a sequence of {:type :page :n N} and {:type :ellipsis} maps. current — 1-indexed current page total — total page count siblings — pages shown on each side of current boundary — pages always shown at start and end
Returns a sequence of {:type :page :n N} and {:type :ellipsis} maps.
current — 1-indexed current page
total — total page count
siblings — pages shown on each side of current
boundary — pages always shown at start and end(normalize {:keys [page-raw total-pages-raw sibling-count-raw boundary-count-raw
size-raw disabled-present? label-raw]})(parse-page s total)Parse current page, clamped to [1, total].
Parse current page, clamped to [1, total].
(parse-pos-int s fallback)Parse string to positive integer ≥ 1, returning fallback on failure.
Parse string to positive integer ≥ 1, returning fallback on failure.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |