UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

22 lines (21 loc) 1.17 kB
import type { BeanCollection } from '../context/context'; import type { Column } from '../interfaces/iColumn'; import type { CellValueResolveFrom } from '../interfaces/iEditService'; import type { IRowNode } from '../interfaces/iRowNode'; export interface GetCellValueParams<TValue = any> { /** The row node to get the value from */ rowNode: IRowNode; /** The column to get the value from */ colKey: string | Column<TValue>; /** If `true` formatted value will be returned. */ useFormatter?: boolean; /** * Specifies how to resolve the cell value when edits are pending. * - `'edit'` (default): Returns the current editing value, including live editor typing and pending batch values * - `'batch'`: Returns pending batch values but excludes live editor typing (useful for dependent calculations in valueGetters) * - `'data'`: Returns the actual stored data value, ignoring all edit state */ from?: CellValueResolveFrom; } export declare function expireValueCache(beans: BeanCollection): void; export declare function getCellValue<TValue = any>(beans: BeanCollection, params: GetCellValueParams<TValue>): any;