table_getCanNextPage

Function: table_getCanNextPage()

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

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

Checks whether the current page index can move forward.

A pageCount of -1 means the caller does not know the total page count, so this returns true. A page count of 0 returns false.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

Returns

boolean

Example

ts
const canGoForward = table_getCanNextPage(table)