# formulaBar

Shows a formula bar for inspecting and editing the active cell's source value or formula. Enter commits; Escape cancels.

Canonical: https://grid.syidax.com/docs/options/formulaBar/

<a id="meaning"></a>

## What does this API do?

Shows a formula bar for inspecting and editing the active cell's source value or formula. Enter commits; Escape cancels.

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

<a id="contract"></a>

## Exact input and result types

```typescript
formulaBar: boolean
```

| Item | Value |
| --- | --- |
| JavaScript name | formulaBar |
| HTML attribute | formula-bar |
| Default | false |
| Input type | boolean |

<a id="usage"></a>

## Usage flow

Set this on a property of the Grid element. In HTML, you can also use the formula-bar attribute. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

<a id="recipes"></a>

## Feature explanations and examples

- [Formula calculation](https://grid.syidax.com/docs/features/formulas.md) — Formulas evaluate strings beginning with = and display the result in a cell. For example, =SUM(A1:A3) references the first column in the original column definitions and the first three source rows.
