Skip to content

Commit 294a72a

Browse files
authored
Merge pull request #8676 from MicrosoftDocs/autoheight-dialog-update
Autoheight dialog update PR
2 parents 797bf54 + 0c4c592 commit 294a72a

File tree

3 files changed

+23
-16
lines changed

3 files changed

+23
-16
lines changed

powerapps-docs/developer/model-driven-apps/clientapi/reference/Xrm-Navigation/openAlertDialog.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "openAlertDialog (Client API reference) in model-driven apps| MicrosoftDo
33
description: Includes description and supported parameters for the openAlertDialog method.
44
author: HemantGaur
55
ms.author: hemantg
6-
ms.date: 03/12/2022
6+
ms.date: 09/18/2023
77
ms.reviewer: jdaly
88
ms.topic: reference
99
search.audienceType:
@@ -23,17 +23,19 @@ contributors:
2323

2424
## Parameters
2525

26+
> [!NOTE]
27+
> With the *[new look](../../../../../user/modern-fluent-design.md)* enabled, dialog height will resize automatically if you don't set the **height** value of the dialog options.
28+
2629
|Name |Type |Required |Description |
2730
|---|---|---|---|
28-
|alertStrings|Object|Yes|The strings to be used in the alert dialog. The object contains the following values:<br/>- **confirmButtonLabel**: (Optional) String. The confirm button label. If you do not specify the button label, **OK** is used as the button label.<br/>- **text**: String. The message to be displayed in the alert dialog.<br/>- **title**: (Optional) String. The title of the alert dialog.|
29-
|alertOptions|Object|No|The height and width options for alert dialog. The object contains the following values:<br/>- **height**: (Optional) Number. Height of the alert dialog in pixels.<br/>- **width**: (Optional) Number. Width of the alert dialog pixels.|
30-
|successCallback|function|No|A function to execute when the alert dialog is closed by either clicking the confirm button or canceled by pressing ESC.|
31+
|alertStrings|Object|Yes|The strings to be used in the alert dialog. The object contains the following values:<br/>- **confirmButtonLabel**: (Optional) String. The confirm button label. If you don't specify the button label, **OK** is used as the button label.<br/>- **text**: String. The message to be displayed in the alert dialog.<br/>- **title**: (Optional) String. The title of the alert dialog.|
32+
|alertOptions|Object|No|The height and width options for alert dialog. The object contains the following values:<br/>- **height**: (Optional) Number. Height of the alert dialog in pixels.<br/>- **width**: (Optional) Number. Width of the alert dialog pixels.<br><br> With the *[new look](../../../../../user/modern-fluent-design.md)* enabled, dialog height resizes automatically if you don't set the **height** value of the dialog options.|
33+
|successCallback|function|No|A function to execute when the alert dialog closes either clicking the confirm button or canceled by pressing ESC.|
3134
|errorCallback|function|No|A function to execute when the operation fails.|
3235

33-
3436
## Example
3537

36-
The following sample code displays an alert dialog. Clicking **Yes** button in the alert dialog or canceling the alert dialog by pressing ESC calls the `close` function::
38+
The following sample code displays an alert dialog. Clicking **Yes** button in the alert dialog or canceling the alert dialog by pressing ESC calls the `close` function:
3739

3840
```JavaScript
3941
var alertStrings = { confirmButtonLabel: "Yes", text: "This is an alert.", title: "Sample title" };
@@ -48,7 +50,7 @@ Xrm.Navigation.openAlertDialog(alertStrings, alertOptions).then(
4850
);
4951
```
5052

51-
### Related topics
53+
### Related articles
5254

5355
[Xrm.navigation](../xrm-navigation.md)
5456

powerapps-docs/developer/model-driven-apps/clientapi/reference/Xrm-Navigation/openConfirmDialog.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "openConfirmDialog (Client API reference) in model-driven apps| Microsoft
33
description: Includes description and supported parameters for the openConfirmDialog method.
44
author: HemantGaur
55
ms.author: hemantg
6-
ms.date: 03/12/2022
6+
ms.date: 09/18/2023
77
ms.reviewer: jdaly
88
ms.topic: reference
99
applies_to: "Dynamics 365 (online)"
@@ -24,10 +24,15 @@ contributors:
2424

2525
## Parameters
2626

27+
> [!NOTE]
28+
> With the *[new look](../../../../../user/modern-fluent-design.md)* enabled, dialog height will resize automatically if you don't set the **height** value of the dialog options.
29+
30+
31+
2732
|Name |Type |Required |Description |
2833
|---|---|---|---|
29-
|confirmStrings|Object|Yes|The strings to be used in the confirmation dialog. The object contains the following values:<br/>- **cancelButtonLabel**: (Optional) String. The cancel button label. If you do not specify the cancel button label, **Cancel** is used as the button label.<br/>- **confirmButtonLabel**: (Optional) String. The confirm button label. If you do not specify the confirm button label, **OK** is used as the button label.<br/>- **subtitle**: (Optional) String. The subtitle to be displayed in the confirmation dialog.<br/>- **text**: String. The message to be displayed in the confirmation dialog.<br/>- **title**: (Optional) String. The title to be displayed in the confirmation dialog.|
30-
|confirmOptions|Object|No|The height and width options for confirmation dialog. The object contains the following values:<br/>- **height**: (Optional) Number. Height of the confirmation dialog in pixels.<br/>- **width**: (Optional) Number. Width of the confirmation dialog in pixels.|
34+
|confirmStrings|Object|Yes|The strings to be used in the confirmation dialog. The object contains the following values:<br/>- **cancelButtonLabel**: (Optional) String. The cancel button label. If you don't specify the cancel button label, **Cancel** is used as the button label.<br/>- **confirmButtonLabel**: (Optional) String. The confirm button label. If you don't specify the confirm button label, **OK** is used as the button label.<br/>- **subtitle**: (Optional) String. The subtitle to be displayed in the confirmation dialog.<br/>- **text**: String. The message to be displayed in the confirmation dialog.<br/>- **title**: (Optional) String. The title to be displayed in the confirmation dialog.|
35+
|confirmOptions|Object|No|The height and width options for confirmation dialog. The object contains the following values:<br/>- **height**: (Optional) Number. Height of the confirmation dialog in pixels.<br/>- **width**: (Optional) Number. Width of the confirmation dialog in pixels. <br><br>With the *[new look](../../../../../user/modern-fluent-design.md)* enabled, dialog height resizes automatically if you don't set the **height** value of the dialog options.|
3136
|successCallback|function|No|A function to execute when the confirmation dialog is closed by clicking the confirm, cancel, or **X** in the top-right corner of the dialog. An object with the **confirmed** (Boolean) attribute is passed that indicates whether the confirm button was clicked to close the dialog.|
3237
|errorCallback|function|No|A function to execute when the operation fails.|
3338

@@ -48,7 +53,7 @@ function (success) {
4853

4954
```
5055

51-
### Related topics
56+
### Related articles
5257

5358
[Xrm.Navigation](../xrm-navigation.md)
5459

powerapps-docs/user/modern-fluent-design.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Modern, refreshed look for model-driven apps
33
description: Learn about the updated, user interface that makes model-driven apps easier to use.
44
author: chmoncay
55
ms.topic: overview
6-
ms.date: 08/22/2023
6+
ms.date: 09/18/2023
77
ms.service: powerapps
88
ms.subservice: end-user
99
ms.author: chmoncay
@@ -21,13 +21,13 @@ contributors:
2121

2222
Model-driven apps have a modern, refreshed look when the **Try the new look** feature has been [turned on by end users](modern-fluent-design.md#turn-on-the-new-look). This new look provides updated styling including fonts, colors, borders, shadows, and more that align to the latest [Microsoft Fluent design system](https://react.fluentui.dev/?path=/docs/concepts-introduction--page). The updated look makes model-driven apps easier to use so that users can accomplish their goals quickly and efficiently. This feature is transitioning from preview to general availability. Learn more about this process in [Preview to general availability rollout](modern-fluent-design.md#preview-to-general-availability-rollout).
2323

24-
The Fluent design system provides consistency, quality, and Microsoft-wide platform coherence. It also provides a solid foundation for extensibility and allows support for dark mode in the future.
24+
The Fluent design system provides consistency, quality, and Microsoft-wide platform coherence. It also provides a solid foundation for extensibility and allows support for dark mode in the future.
2525

26-
## Whats included with the new look
26+
## What's included with the new look
2727
Here's what you can expect in the modern, refreshed experience:
2828

2929
- Updated styling in form, view, and dashboard pages, which includes the use of drop shadows and brighter background colors to create an elevated or _floating_ appearance. The floating appearance helps to visually separate sections and focuses attention on primary content.
30-
- New Fluent-based controls in forms, business process flows, and dialogs.
30+
- New Fluent-based controls in forms, business process flows, and dialogs. Dialogs now resize height automatically based on the content.
3131
- A new Power Apps grid in place of the read-only grid in view and standard, dashboard pages.
3232
- An end user setting called **Try the new look** that enables the modern, refreshed experience.
3333

@@ -39,7 +39,7 @@ The _floating_ command bar aligns with the Microsoft 365 experience, with consis
3939
:::image type="content" source="media/modern-command-bar.png" alt-text="Floating command bar":::
4040

4141
### View pages
42-
View pages use the new command bar and have updated grid areas that take advantage of the elevation changes to help draw the users attention.
42+
View pages use the new command bar and have updated grid areas that take advantage of the elevation changes to help draw the user's attention.
4343

4444
The biggest change on view pages is the switch from the read-only grid to the [Power Apps grid control (preview)](../maker/model-driven-apps/the-power-apps-grid-control.md), which features infinite scrolling for a modern, data browsing experience. This grid also appears in subgrids and associated grids in main forms, but isn't yet supported in dashboards. The Power Apps grid control also supports inline editing using the **Enable filtering** property. Makers may manually configure their editable grids to use the Power Apps grid control.
4545

0 commit comments

Comments
 (0)