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

> The ColumnsSetWidthCommand type of @salmonui/data-grid/engine: Sets one leaf width in px, clamped to minWidth/maxWidth.

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

```ts
import type { ColumnsSetWidthCommand } 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 ColumnsSetWidthCommand = {
    readonly type: 'columns.setWidth';
    readonly columnId: ColumnId;
    readonly width: number;
};
```

Sets one leaf width in px, clamped to `minWidth`/`maxWidth`.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `readonly type: 'columns.setWidth';` |  |  |
| `columnId` | `readonly columnId: ColumnId;` |  |  |
| `width` | `readonly width: number;` |  |  |
