File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -3896,7 +3896,7 @@ declare namespace Xrm {
38963896 * @remarks An Iframe control provides additional methods, so use {@link IframeControl} where
38973897 * appropriate. Silverlight controls should use {@link SilverlightControl}.
38983898 */
3899- interface FramedControl extends Control {
3899+ interface FramedControl extends Control , UiCanSetVisibleElement {
39003900 /**
39013901 * Returns the content window that represents an IFRAME or web resource.
39023902 * @returns A promise that contains a content window instance representing an IFRAME or web resource.
Original file line number Diff line number Diff line change @@ -785,3 +785,14 @@ function getStepsFromActiveStage(formContext: Xrm.FormContext) {
785785 // $ExpectType ItemCollection<Step>
786786 const steps = process . getActiveStage ( ) . getSteps ( ) ;
787787}
788+
789+ // Demonstrate set visibility for framed control (webresource)
790+ const framedControlSetVisible = ( formContext : Xrm . FormContext ) => {
791+ const framedControl = formContext . getControl < Xrm . Controls . FramedControl > ( "myWebResource" ) ;
792+ if ( framedControl === null ) {
793+ return ;
794+ }
795+
796+ // setVisible
797+ framedControl . setVisible ( true ) ;
798+ } ;
You can’t perform that action at this time.
0 commit comments