Skip to content

CellInputSnapshot@sheetwrite/core

On this page

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;
}

Referenced by

Workspace packages depending on @sheetwrite/core

  • @sheetwrite/benchdependency
  • @sheetwrite/docs-startdependency
  • @sheetwrite/reactdependency
  • @sheetwrite/sveltedependency
  • @sheetwrite/vuedependency
  • @sheetwrite/xlsxdependency

Public exports naming CellInputSnapshot

  • Grid@sheetwrite/core
  • Grid@sheetwrite/react
  • Grid@sheetwrite/svelte
  • Grid@sheetwrite/vue
Documentation