Skip to content

@serenity-is/corelib / ComboboxItem

Interface: ComboboxItem<TSource>

Defined in: src/ui/editors/combobox.ts:14

A single item in a combobox.

Type Parameters

TSource

TSource = any

The source item type.

Properties

cssClass?

optional cssClass: string

Defined in: src/ui/editors/combobox.ts:31

The CSS class of the item, e.g. "text-danger", which the editors that show the class of an item add to it.


disabled?

optional disabled: boolean

Defined in: src/ui/editors/combobox.ts:33

Whether the item is disabled.


icon?

optional icon: IconClassName

Defined in: src/ui/editors/combobox.ts:20

Icon class for the item.


id?

optional id: string

Defined in: src/ui/editors/combobox.ts:16

Unique identifier of the combobox item.


source?

optional source: TSource

Defined in: src/ui/editors/combobox.ts:22

The source item.


text?

optional text: string

Defined in: src/ui/editors/combobox.ts:18

Display text.


textKey?

optional textKey: string

Defined in: src/ui/editors/combobox.ts:27

The local text key of the text of the item, which the editor localizes when it is told which field of an item holds it, see ComboboxCommonOptions.textKeyField. An item whose text is not given has the text of its key.