Skip to main content

Function: paginate()

paginate<Row>(rows, page, pageSize): object

Defined in: packages/sdvtables/src/engine.ts:272

Beta

Page page (0-based, clamped to the pages there are) of rows at pageSize (Infinity: all of them), and the page count, at least 1. Engine plumbing for custom renderers: it may change before 1.0.

Type Parameters​

Row​

Row

Parameters​

rows​

readonly Row[]

page​

number

pageSize​

number

Returns​

object

pageCount​

pageCount: number

rows​

rows: Row[]