Message.hide()
Method Description |
Hides the message. |
Returns |
void |
Supported Script Types |
Client scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Since |
2016.1 |
Syntax
Important:
The following code snippet shows the syntax for this member. It is not a functional example. For a complete script example, see N/ui/message Module Script Sample.
//Add additional code
...
var myMsg = message.create({
title: "My Title 2",
message: "My Message 2",
type: message.Type.INFORMATION
});
myMsg.show();
setTimeout(myMsg.hide(), 15000); // hide the message after 15s
...
//Add additional code