Skip to content

Commit 307a472

Browse files
Update openConfirmDialog.md
1 parent 4104fe6 commit 307a472

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ contributors:
2323
`Xrm.Navigation.openConfirmDialog(confirmStrings,confirmOptions).then(successCallback,errorCallback);`
2424

2525
## Parameters
26+
> [!Note]
27+
> With the [new look](../../../../../user/modern-fluent-design.md) enabled you can now let dialog's height auto resize. You can achieve this by not passing in a height value in the dialog options object.
2628
2729
|Name |Type |Required |Description |
2830
|---|---|---|---|
2931
|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.|
32+
|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 [new look](../../../../../user/modern-fluent-design.md) enabled, height of the dialog with auto resize based on its content if no height is provided.|
3133
|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.|
3234
|errorCallback|function|No|A function to execute when the operation fails.|
3335

0 commit comments

Comments
 (0)