confirm

calls a confirm message box

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

Example

var box = gantt.confirm({
    text: "Continue?",
    ok:"Yes", 
    cancel:"No",
    callback: function(result){
        if(result){
            gantt.message("Yes!");
        }else{
            gantt.message("No...");
        }
    }
});
 
// or
var box = gantt.confirm("Do you want to continue?");

Details

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

See also
Change log

added in version 4.0

Back to top