table_getTopRows

Function: table_getTopRows()

ts
function table_getTopRows<TFeatures, TData>(table): Row<TFeatures, TData>[];

Defined in: features/row-pinning/rowPinningFeature.utils.ts:152

Resolves the visible rows pinned to the top region.

The result follows state.rowPinning.top order and marks each row with position = 'top'.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

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

Returns

Row\<`TFeatures`, `TData`\>[]

Example

ts
const rows = table_getTopRows(table)