@kanunilabs/datagrid-react / LookupItem
Interface: LookupItem
One choice in a lookup column: what is STORED and what is SHOWN.
Indexable
[
field:string]:unknown
Anything else the app carries on an item, read by ColumnLookup.map.
Properties
code?
optionalcode?:unknown
A code + name list's CODE when it is not the value (Tekax B.9.1): two
records may share a code, so value is the identity a pick reports, and
code is what the code box shows, completes and writes to
linkedColumns.code. Left out, the code is the value.
disabled?
optionaldisabled?:string|boolean| {reason:string;visible?:boolean; }
lookup.multiple: the item cannot be ticked or cleared here. A string is
the reason, shown beside it ("Yetkiniz yok"); { reason, visible: false }
keeps it off the row and gives it only as the tooltip and to screen readers
(Tekax B.18).
id?
optionalid?:unknown
The record's id, for ColumnLookup.linkedColumns.id: picking the item
writes it to that column together with the code (value) and the name
(label).
label
label:
string
short?
optionalshort?:string
lookup.multiple: what the closed cell shows for this item ("E" for
"Ekleme"), joined with the others picked. Left out: the label.
value
value:
unknown