# ComboboxColumn (@salmonui/dropdowns/combobox)

> The ComboboxColumn interface of @salmonui/dropdowns/combobox.

Canonical: https://salmonui.dev/docs/reference/dropdowns/combobox/ComboboxColumn

```ts
import type { ComboboxColumn } from '@salmonui/dropdowns/combobox';
```

Entry index: https://salmonui.dev/docs/reference/dropdowns/combobox (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/dropdowns/combobox.md).

## Reference

Kind: interface

```ts
interface ComboboxColumn<Item> {
    readonly field: string;
    readonly header?: string;
    readonly width?: number | `${number}%`;
    readonly align?: 'start' | 'end' | 'center';
    readonly format?: Intl.NumberFormatOptions | Intl.DateTimeFormatOptions | ((value: unknown, item: Item) => string);
    readonly renderCell?: (props: {
        readonly item: Item;
        readonly value: unknown;
        readonly text: string;
    }) => ReactNode;
    readonly renderHeader?: (props: {
        readonly column: ComboboxColumn<Item>;
    }) => ReactNode;
    readonly displayAsCheckbox?: boolean;
    readonly cellProps?: {
        readonly className?: string | undefined;
        readonly style?: CSSProperties | undefined;
        readonly [data: `data-${string}`]: string | number | boolean | undefined;
    } | ((item: Item) => {
        readonly className?: string | undefined;
        readonly style?: CSSProperties | undefined;
    } | undefined);
    readonly sortable?: boolean;
}
```

Members (10):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `field` | `readonly field: string;` |  | Item field shown in the column; also the sort key and `searchFields` name. |
| `header` | `readonly header?: string;` | optional |  |
| `width` | `` readonly width?: number \| `${number}%`; `` | optional | Pixels or a percentage string (`'40%'`). |
| `align` | `readonly align?: 'start' \| 'end' \| 'center';` | optional |  |
| `format` | `readonly format?: Intl.NumberFormatOptions \| Intl.DateTimeFormatOptions \| ((value: unknown, item: Item) => string);` | optional | `Intl` options (numbers, dates) or a formatter. |
| `renderCell` | `readonly renderCell?: (props: {     readonly item: Item;     readonly value: unknown;     readonly text: string; }) => ReactNode;` | optional |  |
| `renderHeader` | `readonly renderHeader?: (props: {     readonly column: ComboboxColumn<Item>; }) => ReactNode;` | optional |  |
| `displayAsCheckbox` | `readonly displayAsCheckbox?: boolean;` | optional | Shows a boolean value as a checkbox mark. |
| `cellProps` | `` readonly cellProps?: {     readonly className?: string \| undefined;     readonly style?: CSSProperties \| undefined;     readonly [data: `data-${string}`]: string \| number \| boolean \| undefined; } \| ((item: Item) => {     readonly className?: string \| undefined;     readonly style?: CSSProperties \| undefined; } \| undefined); `` | optional | Extra props for every cell of the column. |
| `sortable` | `readonly sortable?: boolean;` | optional | Header click sorting for this column. Default `true`. |
