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"
  }
}).data("kendoConfirm").result.done(function(){console.log("User accepted"); }).fail(function(){console.log("User rejected");});
</script>
In this article
Not finding the help you need? Improve this article