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

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

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

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

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

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 GroupingSetExpandedCommand = {
    type: 'grouping.setExpanded';
    expanded: Record<string, boolean>;
    defaultExpanded?: boolean;
};
```

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

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: 'grouping.setExpanded';` |  |  |
| `expanded` | `expanded: Record<string, boolean>;` |  |  |
| `defaultExpanded` | `defaultExpanded?: boolean;` | optional |  |
