Back to Table

CreateRowModel_Sorted

docs/reference/interfaces/CreateRowModel_Sorted.md

8.21.31.1 KB
Original Source

Interface: CreateRowModel_Sorted<TFeatures, TData>

Defined in: features/row-sorting/rowSortingFeature.types.ts:212

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Properties

sortedRowModel()?

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

Defined in: features/row-sorting/rowSortingFeature.types.ts:219

This function is used to retrieve the sorted row model. If using server-side sorting, this function is not required. To use client-side sorting, pass the exported getSortedRowModel() from your adapter to your table or implement your own.

Parameters

table

Table<TFeatures, TData>

Returns

ts
(): RowModel<TFeatures, TData>;
Returns

RowModel<TFeatures, TData>