alert

calls an alert message box

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

Example

var box = gantt.alert({
    title:"Alert",
    type:"alert-error",
    text:"You can't do this"
});
 
// or
var box = gantt.alert("This is an alert box");

Details

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

See also
Change log

added in version 4.0

Back to top