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

> The CellSpanResolver interface of @salmonui/data-grid/engine: The span block covering a visible cell, or null when the cell is not part of a span (a 1x1 block). Called only on user actions (moves, selection, editing), never per frame; it must be cheap when nothing spans.

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

```ts
import type { CellSpanResolver } 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 CellSpanResolver {
    (rowIndex: number, columnIndex: number): CellSpanBlock | null;
    readonly active?: () => boolean;
}
```

The span block covering a visible cell, or null when the cell is not part
of a span (a 1x1 block). Called only on user actions (moves, selection,
editing), never per frame; it must be cheap when nothing spans.
