API reference: @salmonui/data-grid/engine
ColumnLookupinterface
import type { ColumnLookup } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/lookup.
interface ColumnLookup {
readonly data: readonly unknown[] | LookupSource;
readonly keyField?: string;
readonly displayField: string;
}
column.lookup: the cell holds a value matched against keyField of the
lookup rows; the grid shows, sorts, filters, searches, and groups by
displayField.
| Name | Signature | Description |
|---|---|---|
data | readonly data: readonly unknown[] | LookupSource; | Lookup rows, or a source that loads them by value ( |
keyFieldoptional | readonly keyField?: string; | Field of the lookup rows matched against the cell value. Default: the column |
displayField | readonly displayField: string; | Field of the lookup rows displayed. Dot paths allowed. |