EMessage Message
Examples
Message
Properties
appendToItemObject to which the overlay is attached.
nullbackgroundColorcolorBackground color.
Dynamic bindingcallbacksvarAction callbacks keyed by message identifier and maintained by message lifecycle.
({})centerboolCenter the layout or text.
falseclearingboolState indicating that the message manager is clearing all messages.
falsecloseOnClickboolClose the message or notification on click.
falsedangerouslyUseHTMLStringboolInterpret content as rich text; enable only for trusted content.
falsedurationintDelay before automatic message closing, in milliseconds.
0: no automatic closing
Positive number: delay in milliseconds
EControlConfig.optionFor(control, "message", "duration", 3000)enabledboolAllow interaction; false disables the control.
truegroupingboolGroup messages or notifications with identical content.
Inherited; default falseheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeighticonSourceintIcon used by the component.
EIcons.*
0 (no icon)
0maxintMaximum simultaneously displayed messages.
0: unlimited
Positive number: limit
EControlConfig.optionFor(control, "message", "max", 0)offsetrealInitial message-stack offset from the window edge in pixels.
EControlConfig.optionFor(control, "message", "offset", 10)pauseOnHoverboolPause auto-advance or the close timer while hovered.
truependingRemovalKeysvarMessage keys awaiting removal after exit animations.
[]placementintDisplay position of the message in the window.
EPlacement.TopLeftEPlacement.TopEPlacement.TopRightEPlacement.LeftEPlacement.CenterEPlacement.RightEPlacement.BottomLeftEPlacement.BottomEPlacement.BottomRight
EControlConfig.optionFor(control, "message", "placement", EPlacement.Top)plainboolUse plain colors.
Inherited; default falserepeatNumintMessage repeat count.
1showCloseboolShow a close or remove button.
Inherited; default trueshowIconboolShow a semantic status icon.
falsestyleTypeintSemantic color style.
EStyle.DefaultEStyle.PrimaryEStyle.SuccessEStyle.InfoEStyle.WarningEStyle.Danger
EStyle.PrimarytextColorcolorText color.
Dynamic bindingtypeintSemantic message style; Default uses styleType.
EStyle.DefaultEStyle.PrimaryEStyle.SuccessEStyle.InfoEStyle.WarningEStyle.Danger
EStyle.DefaultvisibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthcountintRead onlySkeleton instance count or current item count, depending on the component.
Computed at runtimeSignals
closed(string key)Emitted when a message closes; key identifies the message.
opened(string key)Emitted when a message opens; key identifies the message.
clicked(string key)Emitted when a message is clicked; key identifies the message.
Methods
closeAll(type)Close all messages, optionally limiting closure to the specified type.
close(key)Close the message identified by key.
clear(type)Close messages, optionally limiting closure to the specified type.
open(message, key, duration)Show message text or options; key is an optional message identifier and duration is the display time in milliseconds. Return the message identifier.