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

> The CompiledLookup interface of @salmonui/data-grid/engine: CompiledColumn.lookup of a lookup column (filled by the lookup module).

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

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

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

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 CompiledLookup {
    readonly keyField: string;
    readonly displayField: string;
    readonly type: ColumnType;
    readonly data: readonly unknown[] | LookupSource;
    rawValue(row: unknown): unknown;
    display(key: unknown): unknown;
}
```

`CompiledColumn.lookup` of a lookup column (filled by the `lookup` module).

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `keyField` | `readonly keyField: string;` |  |  |
| `displayField` | `readonly displayField: string;` |  |  |
| `type` | `readonly type: ColumnType;` |  | Display value type: inferred from local lookup rows, `'string'` for remote lookups. |
| `data` | `readonly data: readonly unknown[] \| LookupSource;` |  |  |
| `rawValue` | `rawValue(row: unknown): unknown;` |  | Raw key of a row (the column's original accessor). `engine.getCellValue` returns this. |
| `display` | `display(key: unknown): unknown;` |  | Display value of a key, or null when unknown (remote: may queue a load). |
