# snapshotCaptured

Emitted when a data snapshot is created. Display the saved point using its ID, name, and row count.

Canonical: https://grid.syidax.com/docs/events/snapshotCaptured/

<a id="meaning"></a>

## What does this API do?

Emitted when a data snapshot is created. Display the saved point using its ID, name, and row count.

<a id="contract"></a>

## Exact input and result types

```typescript
snapshotCaptured: { id: string; name: string; rowCount: number }
```

<a id="usage"></a>

## Usage flow

Subscribe with grid.addEventListener('snapshotCaptured', 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('snapshotCaptured', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();
```

<a id="recipes"></a>

## Feature explanations and examples

- [Data snapshot](https://grid.syidax.com/docs/features/snapshots.md) — Snapshots retain rowData at a point in time for comparison with current data or another snapshot. They differ from view-state APIs that save column widths, filters, and focus.
