Skip to content

EAlert Alert ​

import EUI 1.0

Examples ​

Alert ​

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
centerbool

Center the layout or text.

Defaultfalse
closablebool

Show a close or remove button.

Defaulttrue
closeTextstring

Custom close button text.

Default""
descriptionstring

Description text.

Default""
descriptionComponentComponent

Component slot for custom description; null uses the default content. See this page’s examples for delegate context.

Defaultnull
effectstring

Visual theme of the component.

light
dark

Default"light"
enabledbool

Allow interaction; false disables the control.

Defaulttrue
heightreal

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

DefaultimplicitHeight
iconComponentComponent

Component slot for custom icon; null uses the default content. See this page’s examples for delegate context.

Defaultnull
iconSourceint

Icon used by the component.

EIcons.*
0 (no icon)

Default0
showIconbool

Show a semantic status icon.

Defaulttrue
styleTypeint

Semantic color style.

EStyle.Default
EStyle.Primary
EStyle.Success
EStyle.Info
EStyle.Warning
EStyle.Danger

DefaultEStyle.Info
titlestring

Title text.

Default""
titleComponentComponent

Component slot for custom title; null uses the default content. See this page’s examples for delegate context.

Defaultnull
visiblebool

Whether the component is visible.

Defaulttrue
widthreal

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

DefaultimplicitWidth
accentColorcolorRead only

Resolved color from the theme, current state and custom palette.

DefaultComputed at runtime
darkEffectboolRead only

Whether the visual effect is dark.

DefaultComputed at runtime

Signals ​

SignaturePurpose
closed()

Emitted after the component closes.

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