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

> The ColumnsSetWidthsCommand type of @salmonui/data-grid/engine: Merges widths (px) into the runtime widths; replace: true drops widths that are not listed.

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

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

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 ColumnsSetWidthsCommand = {
    readonly type: 'columns.setWidths';
    readonly widths: Readonly<Record<ColumnId, number>>;
    readonly replace?: boolean;
};
```

Merges widths (px) into the runtime widths; `replace: true` drops widths that are not listed.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `readonly type: 'columns.setWidths';` |  |  |
| `widths` | `readonly widths: Readonly<Record<ColumnId, number>>;` |  |  |
| `replace` | `readonly replace?: boolean;` | optional |  |
