Skip to content

Instantly share code, notes, and snippets.

@davecra
Created June 14, 2017 01:31
Show Gist options
  • Save davecra/4730eacc79943dac91fb9895364c1504 to your computer and use it in GitHub Desktop.
Save davecra/4730eacc79943dac91fb9895364c1504 to your computer and use it in GitHub Desktop.
Dialog Code
Office.context.ui.displayDialogAsync('https://localhost:3000/function-file/dialog.html',
{ height: 20, width: 30, displayInIframe: true },
function (asyncResult) {
dialog = asyncResult.value;
// callbacks from the parent
dialog.addEventHandler(Office.EventType.DialogEventReceived, processMessage);
dialog.addEventHandler(Office.EventType.DialogMessageReceived, processMessage);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment