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"
});

See also
Change log

added in version 4.0

Back to top