theophilusx.yorick.paginate

Provides a data pagination component to present data in pages of information.

get-page

(get-page pages page)

Return the page associated with a page number.

paginate

(paginate records page-render-fn & {:keys [page-size rounded button-size], :or {page-size 10}})

Generate a paginated page of records. The records argument is a sequence of records that will be partitioned into pages. Each record in the sequence will be rendered using page-render-fn. The following optional keyword arguments are also supported:

Keyword Description
:page-size number of records to show per page. Default 10
:rounded if true, page navigation items have a rounded look
:button-size sets the size of navigation buttons. Supported values
are :small, :medium and :large