Defined in: features/row-sorting/rowSortingFeature.types.ts:160
TFeatures extends TableFeatures
TData extends RowData
clearSorting: () => void;Defined in: features/row-sorting/rowSortingFeature.types.ts:167
Removes this column from the table's sorting state
void
getAutoSortDir: () => SortDirection;Defined in: features/row-sorting/rowSortingFeature.types.ts:171
Returns a sort direction automatically inferred based on the columns values.
getAutoSortFn: () => SortFn<TFeatures, TData>;Defined in: features/row-sorting/rowSortingFeature.types.ts:175
Returns a sorting function automatically inferred based on the columns values.
SortFn<TFeatures, TData>
getCanMultiSort: () => boolean;Defined in: features/row-sorting/rowSortingFeature.types.ts:179
Returns whether this column can be multi-sorted.
boolean
getCanSort: () => boolean;Defined in: features/row-sorting/rowSortingFeature.types.ts:183
Returns whether this column can be sorted.
boolean
getFirstSortDir: () => SortDirection;Defined in: features/row-sorting/rowSortingFeature.types.ts:187
Returns the first direction that should be used when sorting this column.
getIsSorted: () => false | SortDirection;Defined in: features/row-sorting/rowSortingFeature.types.ts:191
Reads this column's current sort direction, or false when unsorted.
false | SortDirection
getNextSortingOrder: (multi?) => false | SortDirection;Defined in: features/row-sorting/rowSortingFeature.types.ts:197
Returns the next sorting order. Pass multi to resolve the order for a multi-sort toggle, where enableMultiRemove governs whether the cycle can remove the sort.
boolean
false | SortDirection
getSortFn: () => SortFn<TFeatures, TData>;Defined in: features/row-sorting/rowSortingFeature.types.ts:205
Returns the resolved sorting function to be used for this column
SortFn<TFeatures, TData>
getSortIndex: () => number;Defined in: features/row-sorting/rowSortingFeature.types.ts:201
Finds this column's position in the ordered sorting state.
number
getToggleSortingHandler: () => (event) => void | undefined;Defined in: features/row-sorting/rowSortingFeature.types.ts:209
Creates a header/control handler that toggles this column's sorting state.
(event) => void | undefined
toggleSorting: (desc?, isMulti?) => void;Defined in: features/row-sorting/rowSortingFeature.types.ts:213
Toggles this column's sorting state. If desc is provided, it will force the sort direction to that value. If isMulti is provided, it will additively multi-sort the column (or toggle it if it is already sorted).
boolean
boolean
void