API REFERENCE

formulaEvaluated

Emitted when a formula result is calculated. Distinguish formula text from its result.

What does this API do?

Emitted when a formula result is calculated. Distinguish formula text from its result.

API for Pro features: Built-in formulas, references, dependency recalculation and calculated columns

Exact input and result types

typescript
formulaEvaluated: GridFormulaEvaluatedDetail

Usage flow

Subscribe with grid.addEventListener('formulaEvaluated', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.

javascript
const controller = new AbortController();
grid.addEventListener('formulaEvaluated', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();

Read related types

Feature explanations and examples