本页还没有译文
本页 17 段还没译成Português (BR),下面显示的是英文原文。table_setPageSize
还没翻译译自英文(tanstack.com)本页 17 段都还没译
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)AI 翻译查看英文原文