TanStack

table_getCanLastPage

Function: table_getCanLastPage()

ts
function table_getCanLastPage<TFeatures, TData>(table): boolean;

Defined in: features/row-pagination/rowPaginationFeature.utils.ts:300

Checks whether a known, finite last page exists after the current page.

Unknown (-1), empty, and non-finite page counts do not have a navigable last page.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

Returns

boolean

Example

ts
const canGoToLastPage = table_getCanLastPage(table)