Skip to content
Sheetwrite

@sheetwrite/core

FormulaEditinterface

Report a problem

On this page

One formula edit: the cell being edited and what can be read around it.

Members

Properties

readonly cell: Readonly<CellAddress>;

read-only

The data address of the cell being edited.

Methods

functions(): readonly FormulaFunctionMetadata[];

The functions the formula can call, built in and host-registered. Empty until the list has loaded; read it on each suggest instead of keeping it.

refresh(): void;

Asks the formula bar to call suggest again for the text it shows now. Call it when the suggestion changes without a key, such as when the suggester's data finishes loading after the user typed. It does nothing once the edit has ended. Don't call it from suggest.

Declaration

View full TypeScript declaration
export interface FormulaEdit {
readonly cell: Readonly<CellAddress>;
readonly reads: FormulaSheetReads;
functions(): readonly FormulaFunctionMetadata[];
refresh(): void;
}

Referenced by

Public exports naming FormulaEdit