interface ReactSpreadsheetData<Snapshot> {
    getServerSnapshot?: () => Snapshot;
    getCellFormat(
        snapshot: Snapshot,
        row: number,
        column: number,
    ): undefined | string;
    getCellValue(snapshot: Snapshot, row: number, column: number): CellValue;
    getColumnCount(snapshot: Snapshot): number;
    getColumnItemOffsetMapping(snapshot: Snapshot): ItemOffsetMapping;
    getRowCount(snapshot: Snapshot): number;
    getRowItemOffsetMapping(snapshot: Snapshot): ItemOffsetMapping;
    getSnapshot(): Snapshot;
    setCellValueAndFormat(
        row: number,
        column: number,
        value: CellValue,
        format: undefined | string,
    ): boolean;
    subscribe(onDataChange: () => void): () => void;
}

Type Parameters

  • Snapshot

Hierarchy (View Summary)

Methods

Properties

getServerSnapshot?: () => Snapshot