ETreeSelect Tree select
Examples
Tree select
Tree node selection
Properties
allowCreateboolAllow unmatched input to become a new option.
falsecacheDatavarCached lazy tree nodes used to resolve labels for selected values.
[]checkStrictlyboolKeep parent and child selection independent.
falsechildrenRolestringObject field used for text, values, child nodes or indentation.
"children"clearableboolShow 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
-1datavarTree node array; role properties customize field mappings.
Fields:
label, value, children
disabled
[]debounceintDelay, throttling or automatic close time in milliseconds; 0 means no delay or no timed close.
300defaultExpandAllboolExpand all nodes or rows initially.
trueeditableboolAllow 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.
trueexpandedKeysvarUnique keys of expanded nodes, table rows or menu entries.
[]filterMethodvarCustom filter callback using the current component's filtering arguments and result.
Dynamic bindingfilterNodeMethodvarNode filter callback (query, node), returning whether to retain the node.
nullfilterableboolAllow keyword filtering.
falseheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightindentRolestringObject field used for text, values, child nodes or indentation.
"level"labelRolestringObject field used for text, values, child nodes or indentation.
"label"lazyboolCreate content or load data on demand; data controls use load / lazyLoad.
falseleavesOnlyboolAllow only leaf nodes to be selected in tree-select.
falseloadvarLazy-load callback receiving a node and resolve; call resolve(children) to provide children.
nullloadingboolWhether the component is loading.
falseloadingTextstringLoading-state text.
Localized textmaxCollapseTagsintMaximum directly visible tags when collapsing.
1modelvarComponent data source; item structure follows the current example and component contract.
Dynamic bindingmultipleboolAllow 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 textnodeDelegateComponentComponent slot for custom tree or cascader node; null uses the default content. See this page’s examples for delegate context.
nullnodeKeystringUnique identifier field; stable unique keys preserve selection, expansion and caches.
"value"optionDelegateComponentComponent slot for custom option; null uses the default content. See this page’s examples for delegate context.
treeOptionplaceholderTextstringPlaceholder 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.
trueshowCheckboxboolShow checkboxes for tree nodes.
falsesizeintControl 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.
"label"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.
"value"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 runtimecacheOptionsvarRead onlyTree-select options derived from cached data.
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 runtimetreeOptionsvarRead onlyTree-select options derived from tree nodes.
Computed at runtimevisibleOptionsvarRead onlySelect options visible after filtering.
Computed at runtimeSignals
loadFailed(string message)Emitted when loading data fails; message explains why.
nodeExpanded(var value, bool expanded)Emitted when a node expands or collapses, with its identifier and expanded state.
Methods
labelFor(key)Return the display label for the specified value.
checkedState(key)Return the check state of a node or path, including partial selection.
toggleExpanded(key)Toggle expansion of the tree node identified by key.
checkNode(key, checked)Set the checked state of the tree node identified by key.