@serenity-is/corelib / ComboboxCommonOptions
Interface: ComboboxCommonOptions
Defined in: src/ui/editors/comboboxeditor.tsx:18
Common options shared by combobox-based editors.
Extended by
Properties
allowClear?
optionalallowClear:boolean
Defined in: src/ui/editors/comboboxeditor.tsx:20
Whether the selection can be cleared.
checkList?
optionalcheckList: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.
cssClassField?
optionalcssClassField: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.
delimited?
optionaldelimited:boolean
Defined in: src/ui/editors/comboboxeditor.tsx:22
Whether multiple items can be selected.
dropdownAutoWidth?
optionaldropdownAutoWidth: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.
iconField?
optionaliconField:string
Defined in: src/ui/editors/comboboxeditor.tsx:32
Name of the item field containing the icon class.
maxSummaryItems?
optionalmaxSummaryItems: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.
minimumResultsForSearch?
optionalminimumResultsForSearch: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.
multiple?
optionalmultiple:boolean
Defined in: src/ui/editors/comboboxeditor.tsx:30
Whether multiple items can be selected.
placeholderIcon?
optionalplaceholderIcon: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.
selectAll?
optionalselectAll: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.
textKeyField?
optionaltextKeyField: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.