TinyBase logoTinyBase

SortedTablePaginatorProps

{
  onChange: (offset: number) => void;
  offset?: number;
  limit?: number;
  total: number;
  singular?: string;
  plural?: string;
}
TypeDescription
onChange(offset: number) => void

An event that will fire when the offset is updated, called with the new offset.

offset?number

The number of Row Ids to skip for pagination.

limit?number

The maximum number of Row Ids being returned.

totalnumber

The total number of Row Ids in the paginated table.

singular?string

A noun to use in the pagination label for a single row, defaulting to 'row'.

plural?string

A noun to use in the pagination label for multiple rows, defaulting to the value of the singular noun suffixed with the letter 's'.

Since

v4.1.0