@serenity-is/corelib / ComboboxEditorOptions
Interface: ComboboxEditorOptions
Defined in: src/ui/editors/comboboxeditor.tsx:115
Options for the ComboboxEditor.
Extends
Extended by
Properties
allowClear?
optionalallowClear:boolean
Defined in: src/ui/editors/comboboxeditor.tsx:20
Whether the selection can be cleared.
Inherited from
ComboboxCommonOptions.allowClear
autoComplete?
optionalautoComplete:boolean
Defined in: src/ui/editors/comboboxeditor.tsx:107
Whether arbitrary values are allowed.
Inherited from
ComboboxInplaceAddOptions.autoComplete
cascadeField?
optionalcascadeField:string
Defined in: src/ui/editors/comboboxeditor.tsx:87
Field used for cascading.
Inherited from
ComboboxFilterOptions.cascadeField
cascadeFrom?
optionalcascadeFrom:string
Defined in: src/ui/editors/comboboxeditor.tsx:85
Id of the parent editor to cascade from.
Inherited from
ComboboxFilterOptions.cascadeFrom
cascadeValue?
optionalcascadeValue:any
Defined in: src/ui/editors/comboboxeditor.tsx:89
Value used for cascading.
Inherited from
ComboboxFilterOptions.cascadeValue
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.
Inherited from
ComboboxCommonOptions.checkList
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.
Inherited from
ComboboxCommonOptions.cssClassField
delimited?
optionaldelimited:boolean
Defined in: src/ui/editors/comboboxeditor.tsx:22
Whether multiple items can be selected.
Inherited from
ComboboxCommonOptions.delimited
dialogType?
optionaldialogType:string|DialogType|PromiseLike<DialogType>
Defined in: src/ui/editors/comboboxeditor.tsx:105
Dialog type used for in-place add.
Inherited from
ComboboxInplaceAddOptions.dialogType
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.
Inherited from
ComboboxCommonOptions.dropdownAutoWidth
filterField?
optionalfilterField:string
Defined in: src/ui/editors/comboboxeditor.tsx:91
Field used for filtering.
Inherited from
ComboboxFilterOptions.filterField
filterValue?
optionalfilterValue:any
Defined in: src/ui/editors/comboboxeditor.tsx:93
Value used for filtering.
Inherited from
ComboboxFilterOptions.filterValue
iconField?
optionaliconField:string
Defined in: src/ui/editors/comboboxeditor.tsx:32
Name of the item field containing the icon class.
Inherited from
ComboboxCommonOptions.iconField
inplaceAdd?
optionalinplaceAdd:boolean
Defined in: src/ui/editors/comboboxeditor.tsx:101
Whether in-place add is enabled.
Inherited from
ComboboxInplaceAddOptions.inplaceAdd
inplaceAddPermission?
optionalinplaceAddPermission:string
Defined in: src/ui/editors/comboboxeditor.tsx:103
Permission required for in-place add.
Inherited from
ComboboxInplaceAddOptions.inplaceAddPermission
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.
Inherited from
ComboboxCommonOptions.maxSummaryItems
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.
Inherited from
ComboboxCommonOptions.minimumResultsForSearch
multiple?
optionalmultiple:boolean
Defined in: src/ui/editors/comboboxeditor.tsx:30
Whether multiple items can be selected.
Inherited from
ComboboxCommonOptions.multiple
openDialogAsPanel?
optionalopenDialogAsPanel:boolean
Defined in: src/ui/editors/comboboxeditor.tsx:109
Whether the in-place add dialog opens as a panel.
Inherited from
ComboboxInplaceAddOptions.openDialogAsPanel
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.
Inherited from
ComboboxCommonOptions.placeholderIcon
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.
Inherited from
ComboboxCommonOptions.selectAll
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.