@adaptabletools/adaptable
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
22 lines (21 loc) • 432 B
TypeScript
import { IRowNode } from 'ag-grid-enterprise';
/**
* Standard comparer function used to evaluate custom sorts, returns -1, 0, 1 as required
*/
export type AdaptableComparerFunction<TData = any> = (
/**
* First Cell to compare
*/
valueA: any,
/**
* Second Cell to compare
*/
valueB: any,
/**
* First Row Node to compare
*/
nodeA?: IRowNode<TData>,
/**
* Second Row Node to compare
*/
nodeB?: IRowNode<TData>) => number;