result Promise

Promise a jQuery promise instance, which can be used for callbacks, or passed to jQuery.when. The jQuery Deferred object resolves to:

  • done() - when user has pressed the "OK" button;
  • fail() - when user has pressed the "Cancel" button.

Example

<div id="confirm"></div>
<script>
$("#confirm").kendoConfirm({
  content: "Do you accept?",
  messages:{
    okText: "OK"
  }
/* The result can be observed in the DevTools(F12) console of the browser. */
}).data("kendoConfirm").result.done(function(){console.log("User accepted"); }).fail(function(){console.log("User rejected");});
</script>
In this article