Skip to content

Instantly share code, notes, and snippets.

@davecra
Created June 20, 2017 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davecra/9d83f43100cd8228717a662675d6c4b2 to your computer and use it in GitHub Desktop.
Save davecra/9d83f43100cd8228717a662675d6c4b2 to your computer and use it in GitHub Desktop.
Demonstrates how to call back to the parent from an Office UI Dialog
Office.initialize = function(reason) {
$(document).ready(function () {
$("#okButton").click(function() {
// notify the parent
Office.context.ui.messageParent("My custom message.");
});
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment