Office UI Namespace (JavaScript API for Office)

The Office UI namespace, Office.context.ui, provides objects and methods that you can use to create and manipulate UI components, such as dialog boxes, in your Office Add-ins.


Method Return Type Description
closeContainer void Closes the active UI container for the add-in.
displayDialogAsync void Displays a dialog box in an Office host.
messageParent void Sends a message from a dialog box to the parent add-in.


For examples, see the displayDialogAsync method topic.