Skip to content

@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

ParameterType
propColumnProp
aDataType
bDataType

Returns

number

Defined in

src/types/interfaces.ts:387

Revogrid is a MIT-licensed open source library made by Revolist OU.