API REFERENCE

valueGetter

Returns a cell value calculated from the source row. Use valueFormatter for display-text changes only.

What does this API do?

Returns a cell value calculated from the source row. Use valueFormatter for display-text changes only.

Exact input and result types

typescript
valueGetter?: GridCallback<[ValueGetterParams<TData, TValue, TContext>], TValue> | string
ItemValue
RequiredOptional
Input typeGridCallback<[ValueGetterParams<TData, TValue, TContext>], TValue> | string

Usage flow

Set this on an individual column object in columnDefs. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

Read related types

Feature explanations and examples