@revolist/revogrid / CellCompareFunc
Type Alias: CellCompareFunc()
ts
type CellCompareFunc: (prop: ColumnProp, a: DataType, b: DataType) => 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.
Parameters
Parameter | Type |
---|---|
prop | ColumnProp |
a | DataType |
b | DataType |
Returns
number