Skip to content

Pagination

@xngui/cdk/pagination
@xngui/cdk/pagination

Headless page window — index, size, length as signals.

Preview

Page window

Showing 1–10 of 47 · page 1 / 5

110
  • Item 1
  • Item 2
  • Item 3
  • Item 4
  • Item 5
  • Item 6
  • Item 7
  • Item 8
  • Item 9
  • Item 10
1–10 of 47
import { XPagination } from '@xngui/cdk/pagination';
 
const page = new XPagination({
pageSize: 10,
length: 47,
});
 
page.pageIndex(); // → 0
page.fromIndex(); // → 0

Events

Interact with the preview — events will appear here.