Skip to content

Commit f2ea11c

Browse files
authored
Merge pull request #8400 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/powerapps-docs (branch main)
2 parents 3e61349 + 4b8c095 commit f2ea11c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

powerapps-docs/developer/model-driven-apps/clientapi/create-app-side-panes.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,26 @@ Xrm.App.sidePanes.createPane({
9191
> [!div class="mx-imgBorder"]
9292
> ![Screenshot showing an Active Reservations list opened to an individual record.](../media/app-side-panes-opening-record.png "Open record")
9393
94+
### Showing a web resource
95+
96+
This example shows how to display a webresource in the side pane. A custom html page is opened in a side pane where the default header is visible & close button is hidden.
97+
98+
```javascript
99+
Xrm.App.sidePanes.createPane({
100+
title: "Registration Page",
101+
imageSrc: "WebResources/msfp_SurveyIcon_32",
102+
paneId: "RegistrationPage",
103+
canClose: false
104+
}).then((pane) => {
105+
//navigate to webresource
106+
pane.navigate({
107+
pageType: "webresource",
108+
webresourceName: "new_RegistrationPage",
109+
})
110+
});
111+
```
112+
113+
94114
### Managing side panes
95115

96116
In addition to creating side panes and showing rows or views within the side pane, you can also:

0 commit comments

Comments
 (0)