# spanAnchorOf (@salmonui/data-grid/engine/focus)

> The spanAnchorOf function of @salmonui/data-grid/engine/focus: The anchor cell of the span covering a cell: the cell a span-aware focus, selection, or edit targets. Null when there is no resolver, the cell is outside the view, or it is not covered by a span starting elsewhere.

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

```ts
import { spanAnchorOf } from '@salmonui/data-grid/engine/focus';
```

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

## Reference

Kind: function

```ts
function spanAnchorOf<Row>(ctx: ModuleContext<Row>, spans: CellSpanResolver | null, rowId: RowId, columnId: ColumnId): {
    rowId: RowId;
    columnId: ColumnId;
} | null;
```

The anchor cell of the span covering a cell: the cell a
span-aware focus, selection, or edit targets. Null when there is no
resolver, the cell is outside the view, or it is not covered by a span
starting elsewhere.
