calls a message box of the specified type
config | object | string | number | either an object with the message box's configuration or the text to show |
string | number | the ID of the message box |
let box = gantt.message({
type:"warning",
text:"Are you sure you want to do it?"
});
// or
box = gantt.message("This is the message");
The configuration object uses the following properties:
The message property can be a function, but can also be used as a configuration object for the popup message. It has the following properties:
gantt.message.position = "left";
gantt.message.keyboard = false;
gantt.message.hide("popupId");
For additional details about supported configuration options of a message box, see the Popup Messages and Modal Boxes article.
added in version 4.0
Back to top