Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
- stockFeatures
- coreFeatures
- coreCellsFeature
- coreColumnsFeature
- coreHeadersFeature
- coreRowModelsFeature
- coreRowsFeature
- coreTablesFeature
- cellSpanningFeature
- columnFilteringFeature
- columnFacetingFeature
- rowAggregationFeature
- columnGroupingFeature
- columnOrderingFeature
- columnPinningFeature
- columnResizingFeature
- columnSizingFeature
- columnVisibilityFeature
- globalFilteringFeature
- rowExpandingFeature
- rowPaginationFeature
- rowPinningFeature
- rowSelectionFeature
- rowSortingFeature
- filterFns
- sortFns
- aggregationFns
- ColumnFilter
- ColumnPinningState
- ColumnSort
- PaginationState
- RowPinningState
- columnResizingState
- FilterFn
- FilterFns
- FilterMeta
- SortFn
- SortFns
- AggregationFns
- AggregationContext
- AggregationMergeContext
- AggregationFnDef
- AggregationFnDescriptor
- AggregationValueContext
- AggregationValueResult
- constructAggregationFn
- ColumnFiltersState
- ColumnOrderState
- ColumnPinningPosition
- ColumnResizeDirection
- ColumnResizeMode
- ColumnSizingState
- ColumnVisibilityState
- ExpandedState
- GroupingState
- RowPinningPosition
- RowSelectionState
- SortDirection
- SortingState
- AggregationFnOption
- AggregationResult
- FilterFnOption
- SortFnOption
- BuiltInAggregationFn
- BuiltInFilterFn
- BuiltInSortFn
Static Functions API Reference
Legacy API Reference
- Legacy API Overview
- useLegacyTable
- legacyCreateColumnHelper
- getCoreRowModel
- getFilteredRowModel
- getSortedRowModel
- getGroupedRowModel
- getExpandedRowModel
- getPaginationRowModel
- getFacetedRowModel
- getFacetedMinMaxValues
- getFacetedUniqueValues
- LegacyRowModelOptions
- LegacyTable
- LegacyTableOptions
- LegacyReactTable
- LegacyColumnDef
ColumnDef_RowSorting
Defined in: features/row-sorting/rowSortingFeature.types.ts:118
Type Parameters#
TFeatures#
TFeatures extends TableFeatures
TData#
TData extends RowData
Properties#
enableMultiSort?#
optional enableMultiSort?: boolean;Defined in: features/row-sorting/rowSortingFeature.types.ts:125
Enables/Disables multi-sorting for this column.
enableSorting?#
optional enableSorting?: boolean;Defined in: features/row-sorting/rowSortingFeature.types.ts:129
Enables/Disables sorting for this column.
invertSorting?#
optional invertSorting?: boolean;Defined in: features/row-sorting/rowSortingFeature.types.ts:133
Inverts the order of the sorting for this column. This is useful for values that have an inverted best/worst scale where lower numbers are better, e.g. a ranking (1st, 2nd, 3rd) or golf-like scoring
sortDescFirst?#
optional sortDescFirst?: boolean;Defined in: features/row-sorting/rowSortingFeature.types.ts:137
Set to true for sorting toggles on this column to start in the descending direction.
sortFn?#
optional sortFn?: SortFnOption<TFeatures, TData>;Defined in: features/row-sorting/rowSortingFeature.types.ts:143
The sorting function to use with this column.
- A string referencing a built-in sorting function
- A custom sorting function
sortUndefined?#
optional sortUndefined?: false | 1 | -1 | "first" | "last";Defined in: features/row-sorting/rowSortingFeature.types.ts:157
The priority of undefined values when sorting this column.
- false
- Undefined values will be passed to the sorting function like any other value with no special handling; the sorting function is responsible for handling them
- -1
- Undefined values will be sorted with higher priority (ascending) (if ascending, undefined will appear on the beginning of the list)
- 1
- Undefined values will be sorted with lower priority (descending) (if ascending, undefined will appear on the end of the list)
- 'first'
- Undefined values will be pushed to the beginning of the list regardless of sort direction
- 'last'
- Undefined values will be pushed to the end of the list regardless of sort direction