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

> The DetailResolver interface of @salmonui/data-grid/engine: Resolves which rows of an inner view get a detail row (the module's expansion state).

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

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

Also exported from `@salmonui/data-grid/engine/expansion`.

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 DetailResolver {
    readonly all: boolean;
    readonly ids: ReadonlySet<RowId>;
    readonly sourceIndexOf: (rowId: RowId) => number;
    readonly hasDetail: ((row: unknown) => boolean) | null;
    readonly source: readonly unknown[];
}
```

Resolves which rows of an inner view get a detail row (the module's expansion state).

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `all` | `readonly all: boolean;` |  | Expand-all mode: every visible data row except `collapsed` (and rows failing `hasDetail`). |
| `ids` | `readonly ids: ReadonlySet<RowId>;` |  | Explicit mode: expanded ids. Expand-all mode: ids collapsed explicitly. |
| `sourceIndexOf` | `readonly sourceIndexOf: (rowId: RowId) => number;` |  | Source index of a row id, or -1. |
| `hasDetail` | `readonly hasDetail: ((row: unknown) => boolean) \| null;` |  | Data row object at an inner index (for `hasDetail`), when available. |
| `source` | `readonly source: readonly unknown[];` |  |  |
