RevoGrid Documentation v4.21.8 / 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 Parameter | Default type |
|---|---|
TModel extends DataType | DataType |
Parameters
| Parameter | Type |
|---|---|
prop | ColumnProp |
a | TModel |
b | TModel |
Returns
number