On this page
Replace formulas that read the given workbooks with their values, and remove
those links. Every formula that reads one of books gets its current value,
as Excel's "Break Link" does. An error value becomes its text, such as
#N/A. One undoable change. Returns whether the document applied it.
Declaration
function breakExternalLinks (
books : readonly string [],
Parameters
The grid whose workbook holds the links.
books : readonly string[] required
Names of the linked workbooks to break; case is ignored.
Returns
boolean
false when the document refused the change.
interface Grid {
readonly store: Store;
readonly actions: GridActions;
getRuntimeResourceSnapshot(
operation: RuntimeResourceOperation,
phase: RuntimeResourcePhase,
runtime?: RuntimeMemoryObservation,
): RuntimeResourceSnapshot;
getCommandState(command: GridCommandName): GridCommandState;
getFocusCellStyle(): CellStyle;
summarizeSelection(
signal?: AbortSignal,
): Promise<SelectionSummary | null>;
setActiveSheet(id: SheetId): void;
scrollToCell(addr: CellAddress): void;
// … 181 more lines — see the API reference
} interface Grid {
readonly store : Store ;
readonly actions : GridActions ;
getRuntimeResourceSnapshot (
operation: RuntimeResourceOperation ,
phase: RuntimeResourcePhase ,
runtime?: RuntimeMemoryObservation ,
): RuntimeResourceSnapshot ;
getCommandState ( command: GridCommandName ): GridCommandState ;
getFocusCellStyle (): CellStyle ;
summarizeSelection (
signal?: AbortSignal ,
): Promise < SelectionSummary | null >;
setActiveSheet ( id: SheetId ): void ;
scrollToCell ( addr: CellAddress ): void ;
} interface Grid {
readonly store : Store ;
readonly actions : GridActions ;
getRuntimeResourceSnapshot (
operation: RuntimeResourceOperation ,
phase: RuntimeResourcePhase ,
runtime?: RuntimeMemoryObservation ,
): RuntimeResourceSnapshot ;
getCommandState (
command: GridCommandName ,
): GridCommandState ;
getFocusCellStyle (): CellStyle ;
summarizeSelection (
signal?: AbortSignal ,
): Promise < SelectionSummary | null >;
setActiveSheet (
id: SheetId ,
): void ;
scrollToCell (
} Imperative grid handle for document commands, events, rendering, and teardown. See also createGrid, Grid.applyTransaction· Example API reference On this page