diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d30c5ce8402af7..30f7518132eced 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -4256,7 +4256,7 @@ /types/line-reader/ @stpettersens /types/line-segments-intersect/ @jeremybanka /types/linear-gradient/ @Jack-Works -/types/lineclip/ @devloop01 +/types/lineclip/ @devloop01 @SheepFromHeaven /types/linesert/ @AlanWalk /types/link2aws/ @popefelix /types/linkify-it/ @praxxis @alexplumb @ragafus @@ -8497,6 +8497,7 @@ /types/xar/ @ffflorian /types/xast/ @stefanprobst @wooorm @ChristianMurphy @rokt33r @remcohaszing /types/xast/v1/ @stefanprobst @wooorm @ChristianMurphy @rokt33r +/types/xcode/ @YevheniiKotyrlo /types/xdate/ @yamada28go /types/xdialog/ @DonaldDuck313 /types/xelib/ @awlayton diff --git a/types/xrm/index.d.ts b/types/xrm/index.d.ts index 5398b2db16d893..eab6cccf83ffec 100644 --- a/types/xrm/index.d.ts +++ b/types/xrm/index.d.ts @@ -3896,7 +3896,7 @@ declare namespace Xrm { * @remarks An Iframe control provides additional methods, so use {@link IframeControl} where * appropriate. Silverlight controls should use {@link SilverlightControl}. */ - interface FramedControl extends Control { + interface FramedControl extends Control, UiCanSetVisibleElement { /** * 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. diff --git a/types/xrm/xrm-tests.ts b/types/xrm/xrm-tests.ts index d6449ed0bf324d..3dbd7278573163 100644 --- a/types/xrm/xrm-tests.ts +++ b/types/xrm/xrm-tests.ts @@ -785,3 +785,14 @@ function getStepsFromActiveStage(formContext: Xrm.FormContext) { // $ExpectType ItemCollection const steps = process.getActiveStage().getSteps(); } + +// Demonstrate set visibility for framed control (webresource) +const framedControlSetVisible = (formContext: Xrm.FormContext) => { + const framedControl = formContext.getControl("myWebResource"); + if (framedControl === null) { + return; + } + + // setVisible + framedControl.setVisible(true); +};