This is an overview of the most common usage of AlertDialog. For more information about the available properties, methods, or events, head over to the complete API documentation for AlertDialog.
O método alert() exibe uma mensagem e um botão de OK. Use-o para mostrar informações e notificações que não precisam de uma ação do usuário.
O método faz parte do módulo dialogs.
O método alert() está disponível globalmente. Você pode chamar de qualquer lugar do seu aplicativo.
alert('Your message')
.then(() => {
console.log("Alert dialog closed.");
});alert({
title: "Your title",
message: "Your message",
okButtonText: "Your OK button text"
}).then(() => {
console.log("Alert dialog closed");
});
