The Candid Startup
    Preparing search index...

    Class LayeredSpreadsheetData<BaseData, EditData, BaseSnapshot, EditSnapshot>

    Implementation of SpreadsheetData that layers two other SpreadsheetData instances on top of each other.

    There's an "edit" layer on top where any changes are stored, with a "base" layer underneath. If a value is undefined in the edit layer, the corresponding value is returned from the base layer instead.

    Common use case is a read only reference data source as the base layer with an initially empty edit layer that accepts changes.

    Type Parameters

    Implements

    Index

    Constructors

    Methods

    • Set viewport of interest

      Can be used by SpreadsheetData implementations to optimize data retrieval and memory usage. Queries for cells outside the viewport may return undefined. Clients should not rely on any particular behavior for queries outside the viewport.

      Set to undefined (the default) if the client needs access to the entire spreadsheet

      Parameters

      Returns void