Skip to content

EConfigProvider Config provider ​

import EUI 1.0

Examples ​

Local language and nested configuration ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Config provider ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Properties ​

PropertyDescriptionValues and default
buttonvar

Default option object for the corresponding component; descendants inherit from the nearest provider.

Fields:
autoInsertSpace, dashed, plain
round, text, type

Default({})
cardvar

Default option object for the corresponding component; descendants inherit from the nearest provider.

Fields:
shadow

Default({})
dialogvar

Default option object for the corresponding component; descendants inherit from the nearest provider.

Fields:
alignCenter, draggable, overflow

Default({})
disabledbool

Disable controls in this configuration scope or form.

Defaultfalse
emptyValuesvar

Values treated as empty; includes undefined, null and the empty string by default.

DefaultInherited; default [undefined, null, ""]
enabledbool

Allow interaction; false disables the control.

Default!disabled
heightreal

Component size in pixels; may be bound to its parent layout.

DefaultimplicitHeight
localevar

Language code or a local locale object containing name and texts.

Language name (e.g. zh / en)
Object fields: name, texts

Defaultnull
messagevar

Default option object for the corresponding component; descendants inherit from the nearest provider.

Fields:
duration, grouping, max
offset, placement, plain
showClose

Default({})
sizeint

Control size; inherits the nearest EConfigProvider by default.

EStyle.Small
EStyle.Medium
EStyle.Large

DefaultInherited; EStyle.Medium by default
tablevar

Default option object for the corresponding component; descendants inherit from the nearest provider.

Fields:
showOverflowTooltip, tooltipEffect, tooltipFormatter
tooltipOptions

Default({})
valueOnClearvar

Value after clearing, or a function returning it; inherits configuration by default.

Defaultundefined
visiblebool

Whether the component is visible.

Defaulttrue
widthreal

Component size in pixels; may be bound to its parent layout.

DefaultimplicitWidth
zIndexint

Overlay or watermark stacking order.

DefaultEControlConfig.valueFor(control, "zIndex", 0)
effectiveLocalevarRead only

Resolved locale settings for this scope.

Language name or { name, texts }

DefaultComputed at runtime
euiConfigProviderboolRead only

Read-only marker identifying a configuration provider.

DefaultComputed at runtime
languagestringRead only

Resolved language code in the current configuration scope.

DefaultComputed at runtime
localizedTextsvarRead only

Merged localized text object for the configuration scope.

DefaultComputed at runtime

Released under the MIT License. Third-party assets retain their own licenses.