@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?
optionalcssClass: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?
optionaldisabled:boolean
Defined in: src/ui/editors/combobox.ts:33
Whether the item is disabled.
icon?
optionalicon:IconClassName
Defined in: src/ui/editors/combobox.ts:20
Icon class for the item.
id?
optionalid:string
Defined in: src/ui/editors/combobox.ts:16
Unique identifier of the combobox item.
source?
optionalsource:TSource
Defined in: src/ui/editors/combobox.ts:22
The source item.
text?
optionaltext:string
Defined in: src/ui/editors/combobox.ts:18
Display text.
textKey?
optionaltextKey: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.