On this page
One formula edit: the cell being edited and what can be read around it.
Members
Properties
The data address of the cell being edited.
Reads of the workbook the cell is in.
Methods
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.
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 {
Referenced by
Public exports naming FormulaEdit
interface CellAddress {
sheet: SheetId;
row: number;
col: number;
} interface CellAddress {
sheet : SheetId ;
row : number ;
col : number ;
} interface CellAddress {
sheet : SheetId ;
row : number ;
col : number ;
} Zero-based address of one cell on a stable sheet ID. API reference interface FormulaSheetReads {
workbook(): Workbook;
formula(sheet: SheetId, row: number, col: number): string | null;
value(sheet: SheetId, row: number, col: number): CellScalar;
edge(
sheet: SheetId,
row: number,
col: number,
dRow: number,
dCol: number,
): number;
translate(source: string, dRow: number, dCol: number): string;
} interface FormulaSheetReads {
workbook (): Workbook ;
formula ( sheet: SheetId , row: number , col: number ): string | null ;
value ( sheet: SheetId , row: number , col: number ): CellScalar ;
edge (
sheet: SheetId ,
row: number ,
col: number ,
dRow: number ,
dCol: number ,
): number ;
translate ( source: string , dRow: number , dCol: number ): string ;
} interface FormulaSheetReads {
workbook (): Workbook ;
formula (
sheet: SheetId ,
row: number ,
col: number ,
): string | null ;
value (
sheet: SheetId ,
row: number ,
col: number ,
): CellScalar ;
edge (
sheet: SheetId ,
row: number ,
col: number ,
dRow: number ,
dCol: number ,
): number ;
} What a suggester can read of the workbook while a formula is edited. Rows and columns are zero-based data positions, the positions formula references name. API reference interface FormulaFunctionMetadata {
readonly name: string;
readonly description: string;
readonly arguments: readonly FormulaArgumentMetadata[];
readonly returnKind: string;
readonly examples?: readonly string[];
readonly volatile?: boolean;
} interface FormulaFunctionMetadata {
readonly name : string ;
readonly description : string ;
readonly arguments : readonly FormulaArgumentMetadata [];
readonly returnKind : string ;
readonly examples ?: readonly string [];
readonly volatile ?: boolean ;
} interface FormulaFunctionMetadata {
readonly name : string ;
readonly description : string ;
readonly arguments : readonly FormulaArgumentMetadata [];
readonly returnKind : string ;
readonly examples ?: readonly string [];
readonly volatile ?: boolean ;
} One metadata format for built-in and host functions. API reference On this page