table_setPageSize
function table_setPageSize<TFeatures, TData>(table, updater): void;Defined in: features/row-pagination/rowPaginationFeature.utils.ts:198
Updates pagination.pageSize while preserving the current top row.
The new size is clamped to at least 1, and pageIndex is recalculated so
the row that was previously at the top of the page remains in view.
Type Parameters
TFeatures
TFeatures extends TableFeatures
TData
TData extends RowData
Parameters
table
Table_Internal<TFeatures, TData>
updater
Updater<number>
Returns
void
Example
table_setPageSize(table, (old) => old)