Merge pull request #26526 from AlexJerabek/AlexJ-DialogObject

Office-js: Updating Dialog Type
This commit is contained in:
Nathan Shively-Sanders
2018-06-18 15:38:38 -07:00
committed by GitHub
+6 -4
View File
@@ -656,6 +656,7 @@ declare namespace Office {
*/
closeContainer(): void;
}
/**
* Provides information about what Requirement Sets are supported in current environment.
*/
@@ -666,7 +667,8 @@ declare namespace Office {
* @param minVersion - The minimum required version; e.g., "1.4".
*/
isSetSupported(name: string, minVersion?: number): boolean;
}
}
/**
* Provides options for how a dialog is displayed.
*/
@@ -1062,11 +1064,11 @@ declare namespace Office {
controlForegroundColor: string;
}
/**
* Dialog object returned as part of the displayDialogAsync callback. The object exposes methods for registering event handlers and closing the dialog
* The object that is returned when `UI.displayDialogAsync` is called. It exposes methods for registering event handlers and closing the dialog.
*/
interface DialogHandler {
interface Dialog {
/**
* When called from an active add-in dialog, asynchronously closes the dialog.
* Called from a parent page to close the corresponding dialog box.
*/
close(): void;
/**