Skip to content

Instantly share code, notes, and snippets.

@davecra

davecra/dialog.js

Created Jun 14, 2017
Embed
What would you like to do?
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