confirm

calls a confirm message box

HTMLElement confirm(object config);
configobjectthe confirm box's configuration
HTMLElementthe div container of the confirm box

Example

var box = scheduler.confirm({
    text: "Continue?",
    ok:"Yes", 
    cancel:"No",
    callback: function(result){
        if(result){
            scheduler.message("Yes!");
        }else{
            scheduler.message("No...");
        }
    }
});

Details

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

See also
Change log

added in version 6.0

Back to top