Skip to main content

We have released KoliBri - Public UI v4 (Next). For the LTS version, see .

Your opinion matters! Together with you, we want to continuously improve KoliBri. Share your ideas, wishes, or suggestions—quickly and easily.

Pagination

With the help of the Pagination component, extensive, divided content, such as search results, can be scrolled through in order.

Construction

Code

<div>
<kol-pagination _max="100" _page="6"></kol-pagination>
<kol-pagination _max="100" _page="6" _sibling-count="2"></kol-pagination>
<kol-pagination _max="100" _page="6" _sibling-count="0" _boundary-count="2"></kol-pagination>
</div>

Events

For the handling of events or callbacks, see .

EventtriggerValue
clickPage is clickedNumber of selected page
changePagePage is clickedNumber of selected page
changePageSizePage size is changedNew page size

Example

Usage

The Pagination component can be configured via your properties.

  • The _max attribute determines the total number of elements.
  • The boundary-count attribute determines the number of elements that are displayed on the right and left in the Pagination component, while the remaining elements
  • The _page attribute sets the currently active element. This is highlighted in color.
  • The _sibling-count attribute can be used to determine how many elements should be displayed to the left and right of the current one.

Use cases

The Pagination component can be used in a variety of ways. Especially where extensive content is to be displayed on a content page, it helps to improve the structure and clarity. Classic areas of application for pagination include blog-like content, lists and tables. Pagination can also be used for certain navigation tasks within a page.

Properties

PropertyAttributeDescriptionTypeDefault
_boundaryCount_boundary-countDefines the amount of pages to show next to the outer arrow buttons.number | undefined1
_customClass_custom-classDefines the custom class attribute if _variant="custom" is set.string | undefinedundefined
_hasButtons_has-buttonsDefines which navigation buttons to render (first, last, next, previous buttons).boolean | string | undefined | { first: boolean; last: boolean; next: boolean; previous: boolean; }true
_label_labelDefines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).string | undefinedundefined
_max (required)_maxDefines the maximum value of the element.numberundefined
_on (required)--Gibt an, auf welche Callback-Events reagiert werden.{ onChangePage?: EventValueOrEventCallback<Event, number> | undefined; onChangePageSize?: EventValueOrEventCallback<Event, number> | undefined; onClick?: EventValueOrEventCallback<Event, number> | undefined; }undefined
_page (required)_pageDefines the current page.numberundefined
_pageSize_page-sizeDefines the amount of entries to show per page.number1
_pageSizeOptions_page-size-optionsDefines the options for the page-size-select.number[] | string[]
_siblingCount_sibling-countDefines the amount of pages to show next to the current page.number | undefined1
_tooltipAlign_tooltip-alignDefines where to show the Tooltip preferably: top, right, bottom or left."bottom" | "left" | "right" | "top" | undefined'top'

View example

Live editor

Examples