Skip to content

@serenity-is/corelib / ServiceLookupEditorOptions

Interface: ServiceLookupEditorOptions

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

Options for the ServiceLookupEditor.

Extends

Properties

allowClear?

optional allowClear: boolean

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

Whether the selection can be cleared.

Inherited from

ComboboxEditorOptions.allowClear


autoComplete?

optional autoComplete: boolean

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

Whether arbitrary values are allowed.

Inherited from

ComboboxEditorOptions.autoComplete


capabilities?

optional capabilities: ListRequestCapabilities

Defined in: src/ui/editors/servicelookupeditor.ts:32

Supported ListRequest capabilities. When omitted, all standard properties are sent.


cascadeField?

optional cascadeField: string

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

Field used for cascading.

Inherited from

ComboboxEditorOptions.cascadeField


cascadeFrom?

optional cascadeFrom: string

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

Id of the parent editor to cascade from.

Inherited from

ComboboxEditorOptions.cascadeFrom


cascadeValue?

optional cascadeValue: any

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

Value used for cascading.

Inherited from

ComboboxEditorOptions.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

ComboboxEditorOptions.checkList


columnSelection?

optional columnSelection: ColumnSelection

Defined in: src/ui/editors/servicelookupeditor.ts:24

Column selection mode.


containsField?

optional containsField: string

Defined in: src/ui/editors/servicelookupeditor.ts:40

Field used for contains-text search.


criteria?

optional criteria: any[]

Defined in: src/ui/editors/servicelookupeditor.ts:44

Criteria applied to the request.


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

ComboboxEditorOptions.cssClassField


delimited?

optional delimited: boolean

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

Whether multiple items can be selected.

Inherited from

ComboboxEditorOptions.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

ComboboxEditorOptions.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

ComboboxEditorOptions.dropdownAutoWidth


equalityFilter?

optional equalityFilter: any

Defined in: src/ui/editors/servicelookupeditor.ts:42

Equality filter applied to the request.


excludeColumns?

optional excludeColumns: string[]

Defined in: src/ui/editors/servicelookupeditor.ts:28

Columns to exclude.


filterField?

optional filterField: string

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

Field used for filtering.

Inherited from

ComboboxEditorOptions.filterField


filterValue?

optional filterValue: any

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

Value used for filtering.

Inherited from

ComboboxEditorOptions.filterValue


iconField?

optional iconField: string

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

Name of the item field containing the icon class.

Inherited from

ComboboxEditorOptions.iconField


idField?

optional idField: string

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

Id field name.


includeColumns?

optional includeColumns: string[]

Defined in: src/ui/editors/servicelookupeditor.ts:26

Columns to include.


includeDeleted?

optional includeDeleted: boolean

Defined in: src/ui/editors/servicelookupeditor.ts:30

Whether to include deleted rows.


inplaceAdd?

optional inplaceAdd: boolean

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

Whether in-place add is enabled.

Inherited from

ComboboxEditorOptions.inplaceAdd


inplaceAddPermission?

optional inplaceAddPermission: string

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

Permission required for in-place add.

Inherited from

ComboboxEditorOptions.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

ComboboxEditorOptions.maxSummaryItems


minimumResultsForSearch?

optional minimumResultsForSearch: any

Defined in: src/ui/editors/servicelookupeditor.ts:20

Minimum results required to show the search box.

Overrides

ComboboxEditorOptions.minimumResultsForSearch


multiple?

optional multiple: boolean

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

Whether multiple items can be selected.

Inherited from

ComboboxEditorOptions.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

ComboboxEditorOptions.openDialogAsPanel


pageSize?

optional pageSize: number

Defined in: src/ui/editors/servicelookupeditor.ts:18

Page size for paged searches.


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

ComboboxEditorOptions.placeholderIcon


quickSearchFields?

optional quickSearchFields: string[]

Defined in: src/ui/editors/servicelookupeditor.ts:38

Additional fields searched by the client-side ContainsText fallback. The editor's itemText output is always searched unless ContainsField is set. This fallback cannot reproduce server-side QuickSearch behavior exactly.


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

ComboboxEditorOptions.selectAll


service?

optional service: string

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

Service endpoint to load items from.


sort?

optional sort: string[]

Defined in: src/ui/editors/servicelookupeditor.ts:22

Sort order for results.


textField?

optional textField: string

Defined in: src/ui/editors/servicelookupeditor.ts:16

Text field name.


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

ComboboxEditorOptions.textKeyField