@jsvision/datagrid / LookupItem
Interface: LookupItem
Defined in: datagrid/src/cell-editor.ts:48
One row of a value-help lookup: the stored key (what commits) and the shown label (what displays).
Example
ts
import type { LookupItem } from '@jsvision/datagrid';
const row: LookupItem = { key: '7', label: 'Ada Lovelace' }; // commits '7', shows 'Ada Lovelace'Properties
key
readonlykey:string
Defined in: datagrid/src/cell-editor.ts:50
The value written to the record on select (the stored key).
label
readonlylabel:string
Defined in: datagrid/src/cell-editor.ts:52
The human-readable text shown in the dropdown.