confirm

calls a confirm message box

HTMLElement confirm(object config);

Parameters

configobjectthe confirm box's configuration

Returns

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

See also
Change log

added in version 4.0

Back to top