column_getCanSort

Function: column_getCanSort()

ts
function column_getCanSort<TFeatures, TData, TValue>(column): boolean;

Defined in: features/row-sorting/rowSortingFeature.utils.ts:359

Checks whether this accessor column can participate in sorting.

The column must have an accessor and sorting must be enabled by both the column definition and table options.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

TValue

TValue extends unknown = unknown

Parameters

column

Column_Internal<TFeatures, TData, TValue>

Returns

boolean

Example

ts
const canSort = column_getCanSort(column)