# DetailSetExpandedCommand (@salmonui/data-grid/engine/expansion)

> The DetailSetExpandedCommand type of @salmonui/data-grid/engine/expansion: Controlled expansion: replaces the overrides (and optionally the default).

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

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

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

## Reference

Kind: type

```ts
type DetailSetExpandedCommand = {
    type: 'detail.setExpanded';
    expanded: {
        [rowId: string]: boolean;
    };
    defaultExpanded?: boolean;
};
```

Controlled expansion: replaces the overrides (and optionally the default).

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: 'detail.setExpanded';` |  |  |
| `expanded` | `expanded: {     [rowId: string]: boolean; };` |  |  |
| `defaultExpanded` | `defaultExpanded?: boolean;` | optional |  |
