Webresources and Iframes have getContentWindow method (#43449)

Co-authored-by: Phil Cole <pcole@ebecs.com>
This commit is contained in:
Phil Cole 2020-03-31 00:49:08 +01:00 committed by GitHub
parent 191c20e649
commit 52c902706e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.