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

> The DetailMethods type of @salmonui/data-grid/engine.

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

```ts
import type { DetailMethods } 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: type

```ts
type DetailMethods<Row> = {
    isExpanded(ctx: ModuleContext<Row>, rowId: RowId): boolean;
    getLoad(ctx: ModuleContext<Row>, rowId: RowId): DetailLoadSnapshot;
    getExpandedIds(ctx: ModuleContext<Row>): readonly RowId[];
    getInfo(ctx: ModuleContext<Row>): DetailInfo;
};
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `isExpanded` | `isExpanded(ctx: ModuleContext<Row>, rowId: RowId): boolean;` |  |  |
| `getLoad` | `getLoad(ctx: ModuleContext<Row>, rowId: RowId): DetailLoadSnapshot;` |  | Async load state of a row's detail; stable identity while unchanged. `idle` once the row object was replaced. |
| `getExpandedIds` | `getExpandedIds(ctx: ModuleContext<Row>): readonly RowId[];` |  | Ids expanded explicitly (expand-all mode: ids collapsed explicitly are excluded by `isExpanded`). |
| `getInfo` | `getInfo(ctx: ModuleContext<Row>): DetailInfo;` |  |  |
