calls a confirm message box
config | object|string|number | either an object with the confirm box's configuration or the text to show |
HTMLElement | the div container of the confirm box |
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?");
For details about supported configuration options of a confirm message box, see the Popup Messages and Modal Boxes article.
added in version 4.0
Back to top