API REFERENCE

snapshotRestored

Emitted when snapshot restoration completes. Does not indicate completed server saving.

What does this API do?

Emitted when snapshot restoration completes. Does not indicate completed server saving.

Exact input and result types

typescript
snapshotRestored: { id: string; name: string; rowCount: number }

Usage flow

Subscribe with grid.addEventListener('snapshotRestored', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.

javascript
const controller = new AbortController();
grid.addEventListener('snapshotRestored', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();

Feature explanations and examples