Skip to main content

column_getCanSort

还没翻译译自英文(tanstack.com)本页 17 段都还没译

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

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

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

const canSort = column_getCanSort(column)