API REFERENCE

diffSnapshots

Compares two snapshots or a snapshot with current data. Omit the second ID to compare against current data.

What does this API do?

Compares two snapshots or a snapshot with current data. Omit the second ID to compare against current data.

Exact input and result types

typescript
diffSnapshots(idA: string, idB?: string): Promise<SnapshotDiff<GridRow>>
ArgumentsRequiredType
idARequiredstring
idBOptionalstring

The return type is Promise<SnapshotDiff<GridRow>>.

Usage flow

After registering and initializing the Grid element, call grid.diffSnapshots(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

Read related types

Feature explanations and examples