Skip to main content

table_getRowCount

还没翻译译自英文(tanstack.com)本页 15 段都还没译

function table_getRowCount<TFeatures, TData>(table): number;

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

Resolves the total row count used for pagination math.

options.rowCount wins for manual pagination. Otherwise the count comes from the pre-paginated row model so filtering, grouping, sorting, and expansion are reflected before the page slice is applied.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

Returns

number

Example

const rows = table_getRowCount(table)