ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
22 lines (21 loc) • 1.24 kB
TypeScript
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 to read from */
rowNode: IRowNode;
/** The column to read (field name, `colId`, or `Column` object) */
colKey: string | Column<TValue>;
/** If `true`, returns the formatted string (via the column's `valueFormatter`) instead of the raw value. */
useFormatter?: boolean;
/**
* Controls how pending edits affect the returned value.
* - `'edit'` (default): Returns the live editor value if the cell is being edited, then any pending batch value, then committed data.
* - `'batch'`: Returns pending batch values but excludes live editor typing. Useful for dependent calculations in `valueGetter`.
* - `'data'`: Returns committed data only, 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;