The formula edit the formula bar opens for cell of store, with the
store's function list already loaded: what a FormulaSuggester gets in
open. Runs a suggester without a grid, in tests and benchmarks. Without a
formula bar, its refresh does nothing.
interface Store {
getWorkbook(): Workbook;
getCell(addr: CellAddress): ResolvedCell;
getFormula(addr: CellAddress): string | null;
getSpillAnchor(addr: CellAddress): CellAddress | null;
getRefTarget(addr: CellAddress): CellAddress | null;
recalculateVolatile(now?: Date): void;
getVisibleWindow(
sheet: SheetId,
rows: { start: number; end: number },
cols: readonly number[],
): VisibleWindowView;
getDataWindow?(
sheet: SheetId,
rows: { start: number; end: number },
// … 28 more lines — see the API reference
}interfaceStore{getWorkbook():Workbook;getCell(addr:CellAddress):ResolvedCell;getFormula(addr:CellAddress):string|null;getSpillAnchor(addr:CellAddress):CellAddress|null;getRefTarget(addr:CellAddress):CellAddress|null;recalculateVolatile(now?:Date):void;getVisibleWindow(sheet:SheetId,rows:{start:number;end:number},cols:readonlynumber[],):VisibleWindowView;getDataWindow?(sheet:SheetId,rows:{start:number;end:number},// … 28 more lines — see the API reference}interfaceStore{getWorkbook():Workbook;getCell(addr:CellAddress,):ResolvedCell;getFormula(addr:CellAddress,):string|null;getSpillAnchor(addr:CellAddress,):CellAddress|null;getRefTarget(addr:CellAddress,):CellAddress|null;recalculateVolatile(now?:Date,):void;getVisibleWindow(sheet:SheetId,// … 63 more lines — see the API reference}Columnar workbook storage, query, transaction, and subscription contract.API referenceinterface CellAddress {
sheet: SheetId;
row: number;
col: number;
}interfaceCellAddress{sheet:SheetId;row:number;col:number;}interfaceCellAddress{sheet:SheetId;row:number;col:number;}Zero-based address of one cell on a stable sheet ID.API referenceinterface FormulaEdit {
readonly cell: Readonly<CellAddress>;
readonly reads: FormulaSheetReads;
functions(): readonly FormulaFunctionMetadata[];
refresh(): void;
}interfaceFormulaEdit{readonlycell:Readonly<CellAddress>;readonlyreads:FormulaSheetReads;functions():readonlyFormulaFunctionMetadata[];refresh():void;}interfaceFormulaEdit{readonlycell:Readonly<CellAddress>;readonlyreads:FormulaSheetReads;functions():readonlyFormulaFunctionMetadata[];refresh():void;}One formula edit: the cell being edited and what can be read around it.API reference