Prism Docs

Pagination

Basic Usage

Standard pagination for most use cases.

Current Page: 1
<prism-pagination [total]="50" [(pageIndex)]="pageIndex" />

Changer

Pagination with items per page selector.

Page Index: 0, Page Size: 20
<prism-pagination 
  [total]="500" 
  [(pageIndex)]="pageIndex" 
  [(pageSize)]="pageSize"
  [showSizeChanger]="true" 
/>

Jump

Pagination with go-to page input.

<prism-pagination 
  [total]="500" 
  [(pageIndex)]="pageIndex" 
  [showQuickJumper]="true" 
/>

Simple Mode

Minimalist style for small containers or tight spaces.

<prism-pagination 
  [total]="50" 
  [(pageIndex)]="pageIndex" 
  [simple]="true" 
/>

Theming

Toggle between light and dark themes to see how the component adapts.

Light Mode

PrismPagination Inputs

NameTypeDefaultDescription
totalnumber-Total number of data items (Required)
pageIndexmodel<number>0Current page index (0-indexed)
pageSizemodel<number>10Number of items per page
showSizeChangerbooleanfalseWhether to show the size changer
pageSizeOptionsnumber[][10, 20, 50, 100]Options for the size changer
showQuickJumperbooleanfalseWhether to show the quick jumper
simplebooleanfalseWhether to use simple mode
size'sm' | 'md''sm'Size of pagination buttons

PrismPagination Outputs

NameTypeDefaultDescription
pageChangePageEvent-Emitted when page index or page size changes