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.

O método confirm() exibe uma mensagem de confirmação com botões de Cancel e OK.

O método faz parte do módulo dialogs.


Uso básico

O método confirm() está disponível globalmente. Você pode chamar de qualquer lugar do seu aplicativo.

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

Configurar opções

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