Skip to content

Pagination

Pagination is used for splitting up content or data into several pages, with a control for navigating to the next or previous page.

Usage ---

Pagination

When to use

  • When there are more than 25 items displayed in one view. Pagination should not be shown if only one page is available.

Alternative

Consider using a “Load more” pattern as an alternative to classical pagination. This approach offers users more control by allowing them to load additional results only when they choose to. Instead of navigating between pages, users click a “Load more” button at the end of the current list.

Design ---

Elements

Pagination

  1. Navigation arrows, 2. Current page, 3. "More" indicator

Number of pages

A maximum of 7 pages or items can be displayed.

Pagination

When the total number of pages exceeds 7, then the remaining pages will be truncated. The navigation arrows should always be displayed.

Pagination

Placement of pagination component

Pagination should be placed at the bottom right of the table. Pagination

Code ---

Pagination - provide pagination links for your site or app with the multi-page pagination component, or the simpler pager alternative.

Usage

import { SiPaginationComponent } from '@siemens/element-ng/pagination';

@Component({
  imports: [SiPaginationComponent, ...]
})