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?');

There are no comments yet.

Comment

Subscribe to our newsletter
or Contact us!
Please note that by subscribing to our newsletter, you agree to receive regular email messages from VCC Live about service related news and updates. By subscribing to our newsletter, you also agree that VCC Live will use your data in accordance with the applicable Privacy Policy until you unsubscribe from the newsletter.