# PivotDataChangeEvent (@salmonui/pivot-table)

> The PivotDataChangeEvent interface of @salmonui/pivot-table: onDataChange: drill-through edits wrote these rows.

Canonical: https://salmonui.dev/docs/reference/pivot-table/PivotDataChangeEvent

```ts
import type { PivotDataChangeEvent } from '@salmonui/pivot-table';
```

Entry index: https://salmonui.dev/docs/reference/pivot-table (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/pivot-table.md).

## Reference

Kind: interface

```ts
interface PivotDataChangeEvent<Row = unknown> {
    readonly data: readonly Row[];
    readonly changes: readonly {
        readonly index: number;
        readonly row: Row;
        readonly previous: Row | undefined;
    }[];
    readonly action: 'update' | 'add' | 'delete';
}
```

`onDataChange`: drill-through edits wrote these rows.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `data` | `readonly data: readonly Row[];` |  |  |
| `changes` | `readonly changes: readonly {     readonly index: number;     readonly row: Row;     readonly previous: Row \| undefined; }[];` |  |  |
| `action` | `readonly action: 'update' \| 'add' \| 'delete';` |  |  |
