(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(next-disabled? {:keys [page total-pages disabled]})(normalize {:keys [page-raw total-pages-raw sibling-count-raw boundary-count-raw
size-raw disabled-present? label-raw]})(parse-bool-attr s)(parse-boundary-count s)(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.
(parse-sibling-count s)(parse-size s)(parse-total-pages s)(prev-disabled? {:keys [page disabled]})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 |