OfficeRuntime.Dialog interface

Objekt, das das Dialogfeld darstellt.

Hinweise

API-Satz: CustomFunctionsRuntime 1.1

Verwendet von

Beispiele

const dialogUrl = "https://your-addin-domain.com/dialog.html";
const dialogOptions: OfficeRuntime.DisplayWebDialogOptions = {
  height: "50%",
  width: "50%",
  displayInIFrame: false,
  onMessage: function (message: string, dialog?: OfficeRuntime.Dialog) {
    dialog?.close();
    console.log("Dialog result: " + message);
  },
  onRuntimeError: function (error: Error, dialog?: OfficeRuntime.Dialog) {
    dialog?.close();
    console.log("Dialog error: " + error.message);
  },
}
OfficeRuntime.displayWebDialog(dialogUrl, dialogOptions);

Methoden

close()

Methode zum Schließen eines Dialogfelds. Gibt eine Zusage zurück.

Details zur Methode

close()

Methode zum Schließen eines Dialogfelds. Gibt eine Zusage zurück.

close(): Promise<void>;

Gibt zurück

Promise<void>

Hinweise

API-Satz: CustomFunctionsRuntime 1.1