# RowDelta (@salmonui/data-grid/engine)

> The RowDelta interface of @salmonui/data-grid/engine: Change from one source rows array to the next within one data version chain (local patches, or a setRows that differs from the previous array in a few rows). Rows that are not listed keep their object identity and their relative order; removed rows disappear; updated rows were replaced in place; new rows are appended at the end (from index previousCount - removed.length).

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/RowDelta

```ts
import type { RowDelta } from '@salmonui/data-grid/engine';
```

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

## Reference

Kind: interface

```ts
interface RowDelta {
    readonly previousCount: number;
    readonly count: number;
    readonly removed: Int32Array;
    readonly updated: Int32Array;
}
```

Change from one source rows array to the next within one data version
chain (local patches, or a `setRows` that differs from the previous array
in a few rows). Rows that are not listed keep their object identity and
their relative order; removed rows disappear; updated rows were replaced in
place; new rows are appended at the end (from index
`previousCount - removed.length`).

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `previousCount` | `readonly previousCount: number;` |  | Row count of the previous source array. |
| `count` | `readonly count: number;` |  | Row count of the new source array. |
| `removed` | `readonly removed: Int32Array;` |  | Previous source indexes of removed rows, ascending. |
| `updated` | `readonly updated: Int32Array;` |  | Previous source indexes of rows replaced in place (still present), ascending. |
