table_getCanPreviousPage

Function: table_getCanPreviousPage()

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

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

Checks whether the current page index can move backward.

The first page is page index 0, so only positive page indexes can navigate to a previous page.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal\<`TFeatures`, `TData`\>

Returns

boolean

Example

ts
const canGoBack = table_getCanPreviousPage(table)