confirm
Displays a dialog to the operator with a yes-no question.
Description
vcc.confirm(message: string, [title: string]): boolean
A popup window (modal dialog) appears, containing a message and Yes/No buttons.
Parameters
message
The message to be shown.
title
The title of the window. If not passed, the window will have no title.
Return values
Returns true if the Yes button is pressed, false otherwise.
Example
We want to ask again if there are no orders.
// it will true or false
const answer = vcc.confirm('Everything was okay with the call?');
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.