Skip to content

$p.setMessage

Overview

This explains the method to display any message or error at the bottom of the screen.

Syntax

JavaScript
$p.setMessage('#Message', JSON.stringify({
    Css: <Message Type>,
    Text: <Any message>
}));

Message Type

Type Description
alert-success Green message field indicating normality
alert-warning Yellow message field indicating caution
alert-error Red message field indicating an error

Usage Examples

JavaScript
$p.setMessage('#Message', JSON.stringify({
    Css: 'alert-success',
    Text: 'Processing completed successfully.'
}));