ECascader Cascader
Examples
Cascader
Cascader
Properties
accessibleNamestringName read by assistive technologies; provide a readable name for controls without text.
placeholderTextappendComponentComponentComponent slot for custom input append area or list end; null uses the default content. See this page’s examples for delegate context.
nullcheckStrictlyboolKeep parent and child selection independent.
falsechildrenRolestringObject field used for text, values, child nodes or indentation.
"children"clearIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CIRCLE_XMARKclearableboolShow a clear action; ratings may be cleared by clicking the current score again.
truecollapseTagsboolCollapse excess selected tags.
falseechoModeenumDisplay mode for the input text.
TextInput.NormalTextInput.PasswordTextInput.NoEchoTextInput.PasswordEchoOnEdit
Dynamic bindingemitPathboolEmit the full cascader path; false emits only the final value.
trueemptyValuesvarValues treated as empty; includes undefined, null and the empty string by default.
Inherited; default [undefined, null, ""]enabledboolAllow interaction; false disables the control.
trueexpandTriggerstringInteraction that expands a cascader node.
"click" / "hover"
"click"filterMethodvarCustom filter callback using the current component's filtering arguments and result.
nullfilterableboolAllow keyword filtering.
falsefontfontFont settings for the family, size and text style.
Common fields:
family, pixelSize, pointSize
bold, italic, weight
underline, strikeout
letterSpacing, wordSpacing
application fontformattervarFormatting callback converting a value to displayed text.
nullheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightlabelRolestringObject field used for text, values, child nodes or indentation.
"label"lazyboolCreate content or load data on demand; data controls use load / lazyLoad.
falselazyLoadvarLazy-load callback receiving a node and resolve; call resolve(children) to provide children.
nullmaxCollapseTagsintMaximum directly visible tags when collapsing.
1maximumLengthintMaximum allowed input characters.
32767multipleboolAllow multiple selection.
falsenodeDelegateComponentComponent slot for custom tree or cascader node; null uses the default content. See this page’s examples for delegate context.
nulloptionsvarCascader node array; role properties customize field mappings.
Fields:
label, value, children
disabled
[]parservarInput parser converting displayed text to the underlying value.
nullpasswordVisibleboolDisplay the password as plain text.
falseplaceholderTextstringPlaceholder shown when the value is empty.
Localized textprefixComponentComponentComponent slot for custom prefix; null uses the default content. See this page’s examples for delegate context.
nullprefixIconintIcon used by the component.
EIcons.*
0 (no icon)
0prependComponentComponentComponent slot for custom input prepend area; null uses the default content. See this page’s examples for delegate context.
nullquerystringCurrent filtering or search query.
""readOnlyboolPrevent user editing or rating while allowing programmatic value changes.
trueseparatorstringPath or breadcrumb separator text.
Localized textshowPasswordboolEnable password entry and visibility switching.
falseshowWordLimitboolShow the current character count and length limit.
falsesizeintControl size; inherits the nearest EConfigProvider by default.
EStyle.SmallEStyle.MediumEStyle.Large
Inherited; EStyle.Medium by defaultstyleTypeintSemantic color style.
EStyle.DefaultEStyle.PrimaryEStyle.SuccessEStyle.InfoEStyle.WarningEStyle.Danger
EStyle.PrimarysuffixComponentComponentComponent slot for custom suffix; null uses the default content. See this page’s examples for delegate context.
nullsuffixIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CHEVRON_DOWNtextstringDisplayed text.
selectedLabeltextColorcolorText color.
Dynamic bindingvalidateEventboolRequest 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.
[]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.
implicitWidthcolumnHeightrealRead onlyComputed cascader option column height.
Computed at runtimeeffectiveOptionsvarRead onlyOptions after field mapping.
Computed at runtimefilteredPathsvarRead onlyCascader node paths matching the query.
Computed at runtimehasValidationErrorboolRead onlyWhether validation state is Error.
Computed at runtimenodePathsvarRead onlyFull node paths in cascader data.
Computed at runtimepopupaliasRead onlyReference to the internal menu, popup or tooltip.
Alias: cascadePopupselectedLabelstringRead onlyDisplayed path for the selected cascader value.
Computed at runtimewordCountintRead onlyCurrent input character count.
Computed at runtimeshowPasswordStrengthboolShow strength and rule checks while a password input is focused.
falsepasswordRulesvarPassword rules with label and minLength or pattern.
Show default value
[ {label: ELocale.texts.PasswordLength, minLength: 8}, {label: ELocale.texts.PasswordUppercase, pattern: /[A-Z]/}, {label: ELocale.texts.PasswordLowercase, pattern: /[a-z]/}, {label: ELocale.texts.PasswordNumber, pattern: /[0-9]/}, {label: ELocale.texts.PasswordSymbol, pattern: /[^A-Za-z0-9]/} ]passwordStrengthrealRead onlyFraction of passed password rules, from 0 to 1.
Show default value
passwordRequirements.length ? passwordRequirements.filter(function(rule) { return rule.passed }).length / passwordRequirements.length : 0passwordRequirementsvarRead onlyRule results with label and passed fields.
Show default value
Array.isArray(passwordRules) ? passwordRules.map(function(rule) { let passed = false try { if (rule && rule.minLength !== undefined) passed = text.length >= Number(rule.minLength) else if (rule && rule.pattern) { const expression = new RegExp(rule.pattern) passed = expression.test(text) } } catch (error) { passed = false } return {label: rule && rule.label ? String(rule.label) : "", passed: passed} }) : []Signals
selected(var value)Emitted when the cascader selection changes; value contains the selected path or paths.
loadFailed(string message)Emitted when loading data fails; message explains why.
Methods
open()Open the component panel or popup.
isChecked(path)Return whether the specified item is checked.
clearSelection()Clear the current selection.
checkedState(path)Return the check state of a node or path, including partial selection.
selectLevel(level, index, expandOnly)Select an option at a given level; expandOnly expands the next level without selecting.
loadPath(path, resolved)Load child data for the cascader path; resolved receives the loaded data.
checkPath(path, checked)Set the checked state of the specified cascader path.