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.
The confirm()
method is available globally. You can call it anywhere in your app.
confirm('Your message')
.then(result => {
console.log(result);
});
confirm({
title: "Your title",
message: "Your message",
okButtonText: "Your OK button text",
cancelButtonText: "Your Cancel text"
}).then(result => {
console.log(result);
});