Kaizen
Browse modulesData tabledatatable/sharedTypes

Type Alias: CursorTableData<TRow>

type CursorTableData<TRow> = {
  invalidCursor?: boolean;
  items: TRow[];
  nextCursor: string | null;
  page?: never;
  pageCount?: never;
  pageSize?: never;
  paginationMode: "cursor";
  previousCursor: string | null;
  total?: never;
};

Defined in: shared/datatable/types.ts:344

A keyset/cursor result. Cursors are opaque to DataTable and may encode any server-owned boundary. Null cursors identify the first/final page.

Set invalidCursor when the requested cursor is stale or malformed. The DataTable replaces that URL state with the first-page URL and requests the data again.

Type Parameters

Type Parameter
TRow

Properties

invalidCursor?

optional invalidCursor?: boolean;

Defined in: shared/datatable/types.ts:349


items

items: TRow[];

Defined in: shared/datatable/types.ts:346


nextCursor

nextCursor: string | null;

Defined in: shared/datatable/types.ts:348


page?

optional page?: never;

Defined in: shared/datatable/types.ts:351


pageCount?

optional pageCount?: never;

Defined in: shared/datatable/types.ts:353


pageSize?

optional pageSize?: never;

Defined in: shared/datatable/types.ts:352


paginationMode

paginationMode: "cursor";

Defined in: shared/datatable/types.ts:345


previousCursor

previousCursor: string | null;

Defined in: shared/datatable/types.ts:347


total?

optional total?: never;

Defined in: shared/datatable/types.ts:350

On this page