Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/xrm/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
11 changes: 11 additions & 0 deletions types/xrm/xrm-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -785,3 +785,14 @@ function getStepsFromActiveStage(formContext: Xrm.FormContext) {
// $ExpectType ItemCollection<Step>
const steps = process.getActiveStage().getSteps();
}

// Demonstrate set visibility for framed control (webresource)
const framedControlSetVisible = (formContext: Xrm.FormContext) => {
const framedControl = formContext.getControl<Xrm.Controls.FramedControl>("myWebResource");
if (framedControl === null) {
return;
}

// setVisible
framedControl.setVisible(true);
};