The formula bar of a spreadsheet: an address box (B3) and the input of the active cell (the formula text, not its result). Typing there and Enter/Tab writes the cell (TableApi.setCellInput) and moves like the table, Escape restores it; while the cell editor is open the bar shows its text live. Plain DOM, no dependency – works with every wrapper (pass the TableApi of tableReady). Colors: --ge-table-formula-bar-*.

Example

const bar = new FormulaBar(document.querySelector<HTMLElement>(".formula-bar")!, tableApi);
// later: bar.destroy();

Since

1.1.99

Hierarchy

  • FormulaBar

Constructors

Properties

Methods

Constructors

Properties

addressInput: HTMLInputElement
element: HTMLDivElement
input: HTMLInputElement

Methods