<kern-pagination>
Paging for long tables and lists: range („1–25 von 380“), optional page size, first/previous, page numbers with „…“, next/last. Emits kernPageChange; the app loads the page. Changing the page size keeps the first visible item on screen.
Examples
Paging a device table
Set total and page-size; the component shows the range, page numbers with „…“ and first/previous/next/last buttons. It only emits kernPageChange — the app loads the page.
Pick a page.
Page size
page-sizes offers a page size choice; changing it keeps the first visible item on screen. siblings sets how many page numbers show around the current one. The texts follow the Kern language; the label-* attributes replace single ones, where {from}, {to}, {total} and {n} are replaced.
Properties
labelstring | undefined
labelFirststring | undefined
labelLaststring | undefined
labelNextstring | undefined
labelPagestring | undefined
{n} is replaced.
labelPageSizestring | undefined
labelPreviousstring | undefined
labelRangestring | undefined
{from}, {to} and {total} are replaced.
localestring | undefined
BCP 47 locale for numbers; defaults to <html lang>, then the browser language.
pagenumber
Current page, from 1.
pageSizenumber
pageSizesnumber[] | string
Offered page sizes, e.g. 10,25,50,100; empty hides the choice.
siblingsnumber
Page numbers on each side of the current one.
totalnumber
Number of items.
Events
kernPageChangeCustomEvent<{ page: number; pageSize: number; }>
The page or page size changed.