Webresources and Iframes have getContentWindow method (#43449)

Co-authored-by: Phil Cole <pcole@ebecs.com>
This commit is contained in:
Phil Cole
2020-03-30 16:49:08 -07:00
committed by GitHub
co-authored by Phil Cole
parent 191c20e649
commit 52c902706e
+9
View File
@@ -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<Window>;
/**
* Gets the DOM element containing the control.
* @returns The container object.