@serenity-is/corelib / DateYearEditorOptions
Interface: DateYearEditorOptions
Defined in: src/ui/editors/dateyeareditor.ts:77
Options for the DateYearEditor.
Extends
Properties
allowClear?
optionalallowClear:boolean
Defined in: src/ui/editors/comboboxeditor.tsx:20
Whether the selection can be cleared.
Inherited from
SelectEditorOptions.allowClear
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
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
SelectEditorOptions.cssClassField
delimited?
optionaldelimited:boolean
Defined in: src/ui/editors/comboboxeditor.tsx:22
Whether multiple items can be selected.
Inherited from
descending?
optionaldescending:boolean
Defined in: src/ui/editors/dateyeareditor.ts:83
Whether years are listed in descending order.
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
SelectEditorOptions.dropdownAutoWidth
emptyOptionText?
optionalemptyOptionText:string
Defined in: src/ui/editors/selecteditor.ts:105
Text for the empty option.
Inherited from
SelectEditorOptions.emptyOptionText
iconField?
optionaliconField:string
Defined in: src/ui/editors/comboboxeditor.tsx:32
Name of the item field containing the icon class.
Inherited from
items?
optionalitems:any[]
Defined in: src/ui/editors/selecteditor.ts:103
Items to display; each is a value, a [value, text] pair, or an object with the fields of a combobox item, e.g.
{ id, text, textKey, icon }, whose text key is localized when the editor gives its field, see
ComboboxCommonOptions.textKeyField.
Inherited from
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
SelectEditorOptions.maxSummaryItems
maxYear?
optionalmaxYear:string
Defined in: src/ui/editors/dateyeareditor.ts:81
Maximum year as an absolute value or relative offset (e.g. "+10" or "-5").
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
SelectEditorOptions.minimumResultsForSearch
minYear?
optionalminYear:string
Defined in: src/ui/editors/dateyeareditor.ts:79
Minimum year as an absolute value or relative offset (e.g. "-10" or "+5").
multiple?
optionalmultiple:boolean
Defined in: src/ui/editors/comboboxeditor.tsx:30
Whether multiple items can be selected.
Inherited from
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
SelectEditorOptions.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
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.