Skip to content
Sheetwrite

@sheetwrite/core

FormulaSuggestionSessioninterface

Report a problem

On this page

Suggestions for one formula edit, from its first key to its commit or cancel.

Members

Methods

suggest(text: string, analysis: FormulaAnalysis): FormulaSuggestion | null;

The suggestion for text, the field's text with the caret at its end; null shows none. Runs on every key, so it must return within a frame. analysis is the result formula help computed for this text.

feedback?(event: "accept" | "accept-word" | "dismiss"): void;

optional

What the user did with the last suggestion shown.

close(): void;

The edit ended; release what the session holds.

Declaration

View full TypeScript declaration
export interface FormulaSuggestionSession {
suggest(text: string, analysis: FormulaAnalysis): FormulaSuggestion | null;
feedback?(event: "accept" | "accept-word" | "dismiss"): void;
close(): void;
}

Referenced by

Public exports naming FormulaSuggestionSession