Skip to content

@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

idField?

optional idField: 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?

optional parentIdField: string

Defined in: src/base/lookup.ts:9

Name of the field that holds the parent identifier (for hierarchical lookups).


textField?

optional textField: string

Defined in: src/base/lookup.ts:11

Name of the field that holds the human-readable display text for an item.