Skip to content

madhavagrawal17/DialogApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This addin is a sample of the Two way Messaging for Dialog Api for Office Add-in

Parent Side code:

Office.context.ui.displayDialogAsync("https://madhavagrawal17.github.io/DialogApi/Dialog.html", {height:80, width:50, requireHTTPS: true, promptBeforeOpen:false}, launchDialogCallback);

function launchDialogCallback(asyncResult){ if(asyncResult.status=="succeeded"){ _dialog = asyncResult.value; _dialog.messageChild(“Hello”); } else{ console.log(asyncResult.error.message); } }

Child Side Code:

Office.context.ui.addHandlerAsync(Office.EventType.DialogParentMessageReceived, onMessageFromParent);

function onMessageFromParent(event) { Value = event.message; }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages