ESelect Select
Examples
Select
Selection and clearing
Selection and clearing
Properties
allowCreateboolAllow unmatched input to become a new option.
falseclearableboolShow a clear action; ratings may be cleared by clicking the current score again.
falsecollapseTagsboolCollapse excess selected tags.
falsecurrentIndexintIndex of the current selected or displayed item.
-1: no selection
0 and above: item index
-1debounceintDelay, throttling or automatic close time in milliseconds; 0 means no delay or no timed close.
300editableboolAllow input editing or enable both tab addition and closing.
falseemptyValuesvarValues treated as empty; includes undefined, null and the empty string by default.
Inherited; default [undefined, null, ""]enabledboolAllow interaction; false disables the control.
truefilterMethodvarCustom filter callback using the current component's filtering arguments and result.
nullfilterableboolAllow keyword filtering.
falseheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightindentRolestringObject field used for text, values, child nodes or indentation.
""loadingboolWhether the component is loading.
falseloadingTextstringLoading-state text.
Localized textmaxCollapseTagsintMaximum directly visible tags when collapsing.
1modelvarOption array; textRole and valueRole map object labels and values, with disabled and options groups supported.
[]multipleboolAllow multiple selection.
falsemultipleLimitintMaximum selections.
0: unlimited
Positive number: limit
0noDataTextstringText displayed when no data is available.
Localized textnoMatchTextstringText displayed when filtering finds no matches.
Localized textoptionDelegateComponentComponent slot for custom option; null uses the default content. See this page’s examples for delegate context.
nullplaceholderTextstringPlaceholder shown when the value is empty.
Localized textpopupHeaderComponentComponent slot for a panel footer or popup header/footer. See this page’s examples for delegate context.
nullquerystringCurrent filtering or search query.
""remoteboolUse remote search instead of local filtering.
falseremoteMethodvarRemote query callback receiving a keyword and returning options or a Promise.
nullreserveKeywordboolKeep the search keyword after selection.
truesizeintControl size; inherits the nearest EConfigProvider by default.
EStyle.SmallEStyle.MediumEStyle.Large
Inherited; EStyle.Medium by defaulttagDelegateComponentComponent slot for custom tag item; null uses the default content. See this page’s examples for delegate context.
nulltextRolestringObject field used for text, values, child nodes or indentation.
""validateEventboolRequest enclosing-form validation when the value changes.
truevalidationMessagestringValidation message or externally supplied error text.
""validationStateintInput validation state.
EValidationState.NoneEValidationState.SuccessEValidationState.WarningEValidationState.Error
EValidationState.NonevaluevarCurrent value; read or write through property bindings, with arrays for multiple or range selection.
undefinedvalueKeystringOption value field or unique identifier for object values.
"value"valueOnClearvarValue after clearing, or a function returning it; inherits configuration by default.
Inherited; default undefinedvalueRolestringObject field used for text, values, child nodes or indentation.
""visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthadvancedboolRead onlyWhether select uses advanced mode for multiple selection, filtering or custom delegates.
Computed at runtimeemptyboolRead onlyWhether the current value is considered empty.
Computed at runtimegroupedboolRead onlyWhether the select model contains option groups.
Computed at runtimehasValidationErrorboolRead onlyWhether validation state is Error.
Computed at runtimeselectedValuesvarRead onlySelected values in multiple select mode.
Computed at runtimesourceOptionsvarRead onlyNormalized suggestion or selection options.
Computed at runtimevisibleOptionsvarRead onlySelect options visible after filtering.
Computed at runtimeSignals
cleared()Emitted after the contents are cleared with the clear action.
changed(var value)Emitted when the selection changes; value is the new value.
removedTag(var value)Emitted when a selected tag is removed; value is the removed option value.
searchFailed(string message)Emitted when fetching suggestions fails; message explains why.
Methods
isSelected(key)Return whether the option identified by the given key is selected.
clear()Clear the current contents or selection.
labelFor(key)Return the display label for the specified value.
removeValue(key)Remove the value identified by key from the multi-selection.
requestRemote()Fetch remote options for the current search text.
selectValue(key)Select an option by its value.