Skip to content

Commit 3838c06

Browse files
Update openAlertDialog.md
1 parent 97bf6cc commit 3838c06

File tree

1 file changed

+4
-2
lines changed
  • powerapps-docs/developer/model-driven-apps/clientapi/reference/Xrm-Navigation

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@ contributors:
2323

2424
## Parameters
2525

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.
28+
2629
|Name |Type |Required |Description |
2730
|---|---|---|---|
2831
|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.|
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 [new look](../../../../../user/modern-fluent-design.md) enabled, height of the dialog with auto resize based on its content if no height is provided. |
3033
|successCallback|function|No|A function to execute when the alert dialog is closed by 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

3638
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::

0 commit comments

Comments
 (0)