Skip to content
Sheetwrite

Sheetwrite / Documentation

CellInputSnapshot@sheetwrite/core

View-aware editable snapshot of one cell, for hosts building a detached formula bar or cell inspector.

View-aware editable snapshot of one cell, for hosts building a detached formula bar or cell inspector. address is the translated data address — the correct target for Grid.applyTransaction even under an active sort/filter view — while the (row, col) inputs of Grid.getCellInput are active-sheet view coordinates.

Members 3

address Underlying data address, suitable for a set patch.
readonly address: CellAddress;
text Formula source when the cell is a formula, else the literal display text.
readonly text: string;
format Column input format, for parseCellInput.
readonly format: CellFormat;

Declaration

View full TypeScript declaration
export interface CellInputSnapshot {
readonly address: CellAddress;
readonly text: string;
readonly format: CellFormat;
}