Skip to content
Sheetwrite

Sheetwrite / Documentation

createFormulaBar@sheetwrite/core/shell

Detached formula bar: mirrors the focused cell's editable text (exact formula source, else literal text) and commits on Enter through the grid's undoable transaction path, targeting the data address captured with the…

Detached formula bar: mirrors the focused cell's editable text (exact formula source, else literal text) and commits on Enter through the grid's undoable transaction path, targeting the data address captured with the draft — correct even under an active sort/filter view. A focused, dirty draft is never overwritten by selection/change events; Escape restores the last stable text.

Declaration

function createFormulaBar(
host: HTMLElement,
grid: Grid,
options?: FormulaBarOptions,
): FormulaBarPiece