You are reading docs for v1.3.1, click here for the latest version.
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