alert

calls an alert message box

HTMLElement alert(object config);

Parameters

configobjectthe alert box's configuration

Returns

HTMLElementthe div container of the alert box

Example

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

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