Skip to content

@serenity-is/corelib / ComboboxEditorOptions

Interface: ComboboxEditorOptions

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

Options for the ComboboxEditor.

Extends

Extended by

Properties

allowClear?

optional allowClear: boolean

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

Whether the selection can be cleared.

Inherited from

ComboboxCommonOptions.allowClear


autoComplete?

optional autoComplete: boolean

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

Whether arbitrary values are allowed.

Inherited from

ComboboxInplaceAddOptions.autoComplete


cascadeField?

optional cascadeField: string

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

Field used for cascading.

Inherited from

ComboboxFilterOptions.cascadeField


cascadeFrom?

optional cascadeFrom: string

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

Id of the parent editor to cascade from.

Inherited from

ComboboxFilterOptions.cascadeFrom


cascadeValue?

optional cascadeValue: any

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

Value used for cascading.

Inherited from

ComboboxFilterOptions.cascadeValue


checkList?

optional checkList: boolean

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

Shows a multiple editor as a checklist, instead of a combobox with a choice for each selected item: the results have check boxes, of which the ones that are selected stay in the list, the first item selects all the results that are shown, or clears them, and the selection is shown as one summary, e.g. "A, B, C +2". It has no effect on a single editor.

Inherited from

ComboboxCommonOptions.checkList


cssClassField?

optional cssClassField: string

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

The field of an item, e.g. the column of a lookup, that holds its CSS class, e.g. "text-danger", which the editor adds to the item in its results, as a class of the item itself does.

Inherited from

ComboboxCommonOptions.cssClassField


delimited?

optional delimited: boolean

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

Whether multiple items can be selected.

Inherited from

ComboboxCommonOptions.delimited


dialogType?

optional dialogType: string | DialogType | PromiseLike<DialogType>

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

Dialog type used for in-place add.

Inherited from

ComboboxInplaceAddOptions.dialogType


optional dropdownAutoWidth: boolean

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

Whether the dropdown is as wide as its widest item, up to a limit that the styles give it, instead of as wide as the control, which a narrow control, e.g. a quick filter, needs for the names of its items to fit. Default is true for a checklist, see checkList, and false otherwise.

Inherited from

ComboboxCommonOptions.dropdownAutoWidth


filterField?

optional filterField: string

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

Field used for filtering.

Inherited from

ComboboxFilterOptions.filterField


filterValue?

optional filterValue: any

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

Value used for filtering.

Inherited from

ComboboxFilterOptions.filterValue


iconField?

optional iconField: string

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

Name of the item field containing the icon class.

Inherited from

ComboboxCommonOptions.iconField


inplaceAdd?

optional inplaceAdd: boolean

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

Whether in-place add is enabled.

Inherited from

ComboboxInplaceAddOptions.inplaceAdd


inplaceAddPermission?

optional inplaceAddPermission: string

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

Permission required for in-place add.

Inherited from

ComboboxInplaceAddOptions.inplaceAddPermission


maxSummaryItems?

optional maxSummaryItems: number

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

How many of the selected items the summary of a checklist, see checkList, names before it counts the rest, e.g. 3 for "A, B, C +2". Zero names none of them, and shows how many are selected, e.g. "4 selected", and -1 names them all, and shows how many are selected at the end, e.g. "A, B, C, D (4)", of which the styles cut what does not fit, see SummaryCountOnly and SummaryNamesAll of the attributes. The other negative values are reserved for summaries to come, which name them all until then. When it is not set, or null, it is ComboboxEditorDefaults.maxSummaryItems, which is -1.

Inherited from

ComboboxCommonOptions.maxSummaryItems


minimumResultsForSearch?

optional minimumResultsForSearch: number

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

Minimum results required to show the search box. 0 shows it for any number of results, and a negative value, e.g. -1, hides it permanently, see AlwaysShowSearch and NeverShowSearch of the attributes. When it is not set, it is ComboboxEditorDefaults.minimumResultsForSearch.

Inherited from

ComboboxCommonOptions.minimumResultsForSearch


multiple?

optional multiple: boolean

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

Whether multiple items can be selected.

Inherited from

ComboboxCommonOptions.multiple


openDialogAsPanel?

optional openDialogAsPanel: boolean

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

Whether the in-place add dialog opens as a panel.

Inherited from

ComboboxInplaceAddOptions.openDialogAsPanel


placeholderIcon?

optional placeholderIcon: IconClassName

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

The icon of the placeholder, e.g. the icon of the field or of the filter, which the editor shows when nothing is selected.

Inherited from

ComboboxCommonOptions.placeholderIcon


selectAll?

optional selectAll: boolean

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

Whether a checklist, see checkList, has an item that selects all the results that are shown, or clears them when they are all selected. Its text tells which: "Select all", "Select all matching" when something is typed, or "Select shown" when there are more results than the ones that are loaded, e.g. of an asynchronous source, whose results come in pages. Default is true.

Inherited from

ComboboxCommonOptions.selectAll


textKeyField?

optional textKeyField: string

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

The field of an item, e.g. the column of a lookup, that holds its local text key, which the editor localizes, or "text" when the text of an item is its key. When it is not set, the text of an item is shown as it is, which is what a lookup or a list service does by default, as their texts are data, and may look like keys.

Inherited from

ComboboxCommonOptions.textKeyField