@serenity-is/corelib / ComboboxEditorDefaults
Interface: ComboboxEditorDefaults
Defined in: src/ui/editors/comboboxeditor.tsx:122
The defaults of the combobox editors, see ComboboxEditor.defaults, which an application can change once, e.g. in its script initialization, before the editors are created. An option of an editor takes precedence over them.
Properties
emptyItemText
emptyItemText:
string| () =>string
Defined in: src/ui/editors/comboboxeditor.tsx:130
The text of the empty item, which is the placeholder of an editor that has nothing selected, when the editor has
no placeholder of its own. Default is an empty string, which shows no text, but still lets the selection be
cleared, while null shows no placeholder, and does not let it be cleared. A callback is called each time it is
needed, so it can return a local text that is not loaded yet when the default is set, e.g. to show "--select--"
as before: ComboboxEditor.defaults.emptyItemText = () => SelectEditorTexts.EmptyItemText.
maxSummaryItems
maxSummaryItems:
number
Defined in: src/ui/editors/comboboxeditor.tsx:137
The default of ComboboxCommonOptions.maxSummaryItems. Default is -1, which names them all, with the count of the selection after them.
minimumResultsForSearch?
optionalminimumResultsForSearch:number
Defined in: src/ui/editors/comboboxeditor.tsx:132
The default of ComboboxCommonOptions.minimumResultsForSearch. Not set by default, so the select shows a search box for any number of results.