NativeScript-Vue 2.0: Back to the Vueture (Webinar) is now on YouTube
ConfirmDialog

This is an overview of the most common usage of ConfirmDialog. For more information about the available properties, methods, or events, head over to the complete API documentation for ConfirmDialog.

The confirm() method shows a confirmation message and Cancel and OK buttons.

The method is part of the dialogs module.


Basic use

The confirm() method is available globally. You can call it anywhere in your app.

confirm('Your message')
  .then(result => {
    console.log(result);
  });

Configure dialog options

confirm({
  title: "Your title",
  message: "Your message",
  okButtonText: "Your OK button text",
  cancelButtonText: "Your Cancel text"
}).then(result => {
  console.log(result);
});
Contributors