Muokkaa

Jaa


openConfirmDialog

Displays a confirmation dialog box containing a message and two buttons.

Available for

Model-driven apps

Syntax

context.navigation.openConfirmDialog(confirmStrings, options)

Parameters

Parameter Name Type Required Description
confirmStrings ConfirmDialogStrings Yes The strings used in the dialog. The ConfirmDialogStrings has the following attributes:
- title: String. The title to be displayed in the confirmation dialog.
- subtitle: String. The subtitle to be used displayed in the confirmation dialog.
- text: String. The message to be displayed in the confirmation dialog.
- confirmButtonLabel: String. The confirm button label. If you do not specify the button label, OK (in user's preferred language) is used as the button label.
- cancelButtonLabel: String The cancel button label. If you do not specify the cancel button label, Cancel is used as the button label.
options ConfirmDialogOptions No Options for the dialog. The ConfirmDialogOptions has the following attributes:
- height: Number. Height of the confirmation dialog in pixels.
- width:Number. Width of the confirmation dialog in pixels

Return Value

Type: Promise<ConfirmDialogResponse>

Description: Returns an object with the confirmed (Boolean) attribute is passed that indicates whether the confirm button was clicked to close the dialog.

Remarks

See Promise

Navigation
Power Apps component framework API reference
Power Apps component framework overview