From 52c902706e4e41820a41ed1f54da50ed8564a8d8 Mon Sep 17 00:00:00 2001 From: Phil Cole Date: Tue, 31 Mar 2020 00:49:08 +0100 Subject: [PATCH] Webresources and Iframes have getContentWindow method (#43449) Co-authored-by: Phil Cole --- types/xrm/index.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/types/xrm/index.d.ts b/types/xrm/index.d.ts index df0db06292..f921def497 100644 --- a/types/xrm/index.d.ts +++ b/types/xrm/index.d.ts @@ -3138,6 +3138,15 @@ declare namespace Xrm { * appropriate. Silverlight controls should use {@link SilverlightControl}. */ interface FramedControl extends Control { + /** + * Returns the content window that represents an IFRAME or web resource. + * @returns A promise that contains a content window instance representing an IFRAME or web resource. + * @remarks This method is supported only on Unified Interface. The implementer is expected to call + * a custom function within the returned window that will receive the Xrm and formContext objects as + * parameters. + */ + getContentWindow(): Promise; + /** * Gets the DOM element containing the control. * @returns The container object.