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.
|The caption is the text that the end user sees on your label.
|The name is a unique identifier for Message widget.Special characters and spaces are not allowed in widget name.
|This property specifies the type of the variable: - error, - info, - loading, - success or - warning
|The width of your widget can be specified in px or % (i.e 50px, 75%).
|The height of your widget can be specified in px or % (i.e 50px, 75%).
|Showing 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.
|Hides the close option.
|This property controls the animation of an element. The animation is based on the CSS classes and works only in the run mode.
- to display message: Page.Widgets.message1.showMessage(); //Displays message
- to hide message: Page.Widgets.message1.hideMessage(); //to hide message
|This event handler is called whenever a close event is triggered.