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

> The FitColumn interface of @salmonui/data-grid/engine: One visible leaf column as seen by fitColumnWidths.

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

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

```ts
interface FitColumn {
    readonly width: number;
    readonly max: number;
    readonly flexible: boolean;
}
```

One visible leaf column as seen by `fitColumnWidths`.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `width` | `readonly width: number;` |  | Resolved (declared or user) width in px. |
| `max` | `readonly max: number;` |  | `maxWidth` in px (`Infinity` when unset). |
| `flexible` | `readonly flexible: boolean;` |  | False for columns that never stretch (fixed-size columns such as the selection column). |
