Skip to content

Commit 0c4c592

Browse files
committed
acrolinx
1 parent af3c442 commit 0c4c592

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,16 @@ contributors:
2626
> [!NOTE]
2727
> 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.
2828
29-
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.
30-
3129
|Name |Type |Required |Description |
3230
|---|---|---|---|
33-
|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.|
34-
|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 will resize automatically if you don't set the **height** value of the dialog options.|
35-
|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.|
3634
|errorCallback|function|No|A function to execute when the operation fails.|
3735

3836
## Example
3937

40-
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:
4139

4240
```JavaScript
4341
var alertStrings = { confirmButtonLabel: "Yes", text: "This is an alert.", title: "Sample title" };
@@ -52,7 +50,7 @@ Xrm.Navigation.openAlertDialog(alertStrings, alertOptions).then(
5250
);
5351
```
5452

55-
### Related topics
53+
### Related articles
5654

5755
[Xrm.navigation](../xrm-navigation.md)
5856

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ contributors:
3131

3232
|Name |Type |Required |Description |
3333
|---|---|---|---|
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 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.|
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 will resize automatically if you don't set the **height** value of the dialog options.|
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.|
3636
|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.|
3737
|errorCallback|function|No|A function to execute when the operation fails.|
3838

@@ -53,7 +53,7 @@ function (success) {
5353

5454
```
5555

56-
### Related topics
56+
### Related articles
5757

5858
[Xrm.Navigation](../xrm-navigation.md)
5959

0 commit comments

Comments
 (0)