message

calls a message box of the specified type

HTMLElement message(object|string|number config);
configobject|string|numbereither an object with the message box's configuration or the text to show
HTMLElementthe div container of the message box

Example

let box = gantt.message({ 
    type:"confirm-warning", 
    text:"Are you sure you want to do it?"
});
 
// or
box = gantt.message("This is the message");

Details

For details about supported configuration options of a message box, see the Popup Messages and Modal Boxes article.

See also
Change log

added in version 4.0

Back to top