@serenity-is/corelib / LookupOptions
Interface: LookupOptions<TItem>
Defined in: src/base/lookup.ts:5
Options used to construct a Lookup.
Type Parameters
TItem
TItem
Type of the lookup items.
Properties
cssClassField?
optionalcssClassField:string
Defined in: src/base/lookup.ts:17
Name of the field that holds the CSS class of an item, e.g. "text-danger".
iconField?
optionaliconField:string
Defined in: src/base/lookup.ts:13
Name of the field that holds the icon for an item.
idField?
optionalidField:string
Defined in: src/base/lookup.ts:7
Name of the field that holds the unique identifier for an item. Used as the key in Lookup.itemById.
parentIdField?
optionalparentIdField:string
Defined in: src/base/lookup.ts:9
Name of the field that holds the parent identifier (for hierarchical lookups).
textField?
optionaltextField:string
Defined in: src/base/lookup.ts:11
Name of the field that holds the human-readable display text for an item.
textKeyField?
optionaltextKeyField:string
Defined in: src/base/lookup.ts:15
Name of the field that holds the local text key of an item, e.g. of a table that keeps its texts as keys.