Skip to main content
Version: v11.6.0

Message

Message widget helps to display a custom message on the page. Based on the message type - error, warning, success, info, loading- the message look and feel changes. For instance, setting the message type to error shows an error icon alongside the message text, which is displayed in red.

Features

Properties

PropertyDescription
CaptionThe caption is the text that the end user sees on your label.
NameThe name is a unique identifier for Message widget.Special characters and spaces are not allowed in widget name.
TypeThis property specifies the type of the variable: - error, - info, - loading, - success or - warning
Layout
WidthThe width of your widget can be specified in px or % (i.e 50px, 75%).
HeightThe height of your widget can be specified in px or % (i.e 50px, 75%).
Behavior
ShowShowing determines whether or not a component is visible. It is a bindable property.
Load on Demand (visible only when show property is bound to a variable)When this property is set and show property is bound, the initialization of the widget will be deferred till the widget becomes visible. This behavior improves the load time. Use this feature with caution, as it has a downside (as we will not be able to interact with the widget through script until the widget is initialized). When show property is not bound the widget will be initialized immediately.
Hide CloseHides the close option.
AnimationThis property controls the animation of an element. The animation is based on the CSS classes and works only in the run mode.

Methods

Message widget has few methods exposed on widget scope which can be accessed via JavaScript. See below for usage example

  • to display message: Page.Widgets.message1.showMessage(); //Displays message
  • to hide message: Page.Widgets.message1.hideMessage(); //to hide message

Events

EventDescription
Callback Events
On closeThis event handler is called whenever a close event is triggered.