tags | summary | locale | guid | app_type | platform-version | figma |
---|---|---|---|---|---|---|
runtime-mobileandreactiveweb |
OutSystems 11 (O11) provides functions to display and manage feedback messages in Mobile and Reactive Web Apps. |
en-us |
97a72928-f041-46ef-b4c9-2574f67d986e |
mobile apps, reactive web apps |
o11 |
Applies to Mobile Apps and Reactive Web Apps only
Display personalized feedback messages when using the JavaScript element.
Function | Description |
---|---|
closeFeedbackMessage | Closes the FeedbackMessage that is currently open. |
showFeedbackMessage | Shows a FeedbackMessage with a specified message. You can enable HTML encoding, add CSS classes, and set the behavior on click. |
closeFeedbackMessage(): void
Closes the FeedbackMessage that is currently open.
Returns: void
showFeedbackMessage(message: string, messageType: FeedbackMessageType, [encodeHTML: boolean = true], [extraCssClasses: string], [closeOnClick: boolean = true], [onClick: function]): void
Shows a FeedbackMessage with a specified message. You can enable HTML encoding, add CSS classes, and set the behavior on click.
Example:
// prevent feedback message's default close-on-click behavior
$public.FeedbackMessage.showFeedbackMessage("Your data has been submitted.", 1, true, "", false);
Parameters:
- message: string
Message to be displayed. - messageType: FeedbackMessageType
Type of feedback message to show (0 = Info, 1 = Success, 2 = Warning or 3 = Error). - (Default value) encodeHTML: boolean (default: true)
Whether to escape HTML characters (default istrue
so the message is treated as text). - (Optional) extraCssClasses: string
Whitespace-separated class names to be added to the feedback message container to customize the appearance of the message. - (Default value) closeOnClick: boolean (default: true)
Whentrue
, indicates that the message box will be closed when the user clicks on it. - (Optional) onClick: function
Function to be executed whenever the feedback message is clicked.
Returns: void