Skip to content

@serenity-is/corelib / EnumEditorOptions

Interface: EnumEditorOptions

Defined in: src/ui/editors/enumeditor.ts:10

Options for the EnumEditor.

Extends

Properties

allowClear?

optional allowClear: boolean

Defined in: src/ui/editors/comboboxeditor.tsx:19

Whether the selection can be cleared.

Inherited from

ComboboxCommonOptions.allowClear


delimited?

optional delimited: boolean

Defined in: src/ui/editors/comboboxeditor.tsx:21

Whether multiple items can be selected.

Inherited from

ComboboxCommonOptions.delimited


enumKey?

optional enumKey: string

Defined in: src/ui/editors/enumeditor.ts:12

Key of the enum to load items from.


enumType?

optional enumType: any

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

The enum type to load items from.


flags?

optional flags: boolean

Defined in: src/ui/editors/enumeditor.ts:21

Whether the enum is a set of flags, like a [Flags] enum on the server side. Along with the multiple option, the value is a number, the members selected OR-ed together, or null for none, and the members combining others, like SourceAdapter of the list request capabilities, are offered too, while none (zero) is not. Without multiple, a single member is selected as usual. When it is not set, it is what the enum is registered with, see the enumFlags option of registerEnum.


iconField?

optional iconField: string

Defined in: src/ui/editors/comboboxeditor.tsx:27

Name of the item field containing the icon class.

Inherited from

ComboboxCommonOptions.iconField


minimumResultsForSearch?

optional minimumResultsForSearch: any

Defined in: src/ui/editors/comboboxeditor.tsx:23

Minimum results required to show the search box.

Inherited from

ComboboxCommonOptions.minimumResultsForSearch


multiple?

optional multiple: boolean

Defined in: src/ui/editors/comboboxeditor.tsx:25

Whether multiple items can be selected.

Inherited from

ComboboxCommonOptions.multiple