Skip to content

RevoGrid Documentation v4.27.11 / CellCompareFunc

Type Alias: CellCompareFunc()<TModel> ​

ts
type CellCompareFunc<TModel>: (prop: ColumnProp, a: TModel, b: TModel) => number;

CellCompareFunc is a function that takes the column property to compare, the data of the first cell, and the data of the second cell. It returns a number indicating the relative order of the two cells.

Type Parameters ​

Type ParameterDefault type
TModel extends DataTypeDataType

Parameters ​

ParameterType
propColumnProp
aTModel
bTModel

Returns ​

number

Defined in ​

src/types/interfaces.ts:441