Back to Table

createSortedRowModel

docs/reference/functions/createSortedRowModel.md

8.21.3943 B
Original Source

Function: createSortedRowModel()

ts
function createSortedRowModel<TFeatures, TData>(sortFns): (table) => () => RowModel<TFeatures, TData>;

Defined in: features/row-sorting/createSortedRowModel.ts:12

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

sortFns

Record<keyof SortFns, SortFn<TFeatures, TData>>

Returns

ts
(table): () => RowModel<TFeatures, TData>;

Parameters

table

Table<TFeatures, TData>

Returns

ts
(): RowModel<TFeatures, TData>;

Returns

RowModel<TFeatures, TData>