UNPKG

@adaptabletools/adaptable

Version:

Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

18 lines (17 loc) 744 B
import { CustomCellSummaryOperation } from '../AdaptableState/Common/CellSummary'; import { AdaptableColumnContext, NumberFormatterOptions } from '../types'; /** * Options to provide custom Cell Summary Operations & Display Formats */ export interface CellSummaryOptions<TData = any> { /** * Custom Numeric Cell Summary Operations to add to set shipped by AdapTable */ customCellSummaryOperations?: CustomCellSummaryOperation<TData>[]; /** * Numeric format to use for summary value; a Format Column DisplayFormat will take precedence * * @defaultValue { FractionDigits: 2 } */ numericDisplayFormat?: NumberFormatterOptions | ((columnContext: AdaptableColumnContext) => NumberFormatterOptions); }