ebs.confirmAsync

(FintechOS Studio 20.2.1 and later)

Displays a modal confirmation window that returns the user’s selection asynchronously. The window contains two buttons that allow the user to confirm or reject an action.

Syntax

Copy
function confirmAsync(options: IEbsConfirmAsyncOptions): Promise<boolean>;
 
Parameter Type Description
options IEbsConfirmAsyncOptions Configuration settings for the title, message, and button labels of the confirmation window.

Type Aliases

IEbsConfirmAsyncOptions

Configuration options for customizing the title, message, and button labels of a confirmation window with an asynchronous result.

Copy
interface IEbsConfirmAsyncOptions {
    title?: string;
    message?: string;
    yesButtonLabel?: string;
    noButtonLabel?: string;
}
 
Property Type Description
title (optional) string Tile of the confirmation window.
Default: Confirmation.
message (optional) string Content of the confirmation window. You can use HTML markup for formatting.
Default: Are you sure?
yesButtonLabel(optional) string Label displayed on the confirmation button.
Default: Yes.
noButtonLabel(optional) string Label displayed on the rejection button.
Default. No.

Response

Returns a promise boolean value that resolves based on the user’s choice:

This allows confirmation and rejection to be handled asynchronously.

Examples