Notification
Engage with your users by using our notification and dialog functions.
Show Alertโ
Show a native alert message over the UI in the application. Returns the clicked button, by default the only button is OK
.
async function showDeleteMessage() {
const buttonClicked = await showAlert('Are you sure you want to delete this?', 'This can\'t be undone', ['yes', 'no']);
console.log(buttonClicked); // logs: 'yes'
}
Argumentsโ
name
type
Required
default
title
String
โ
-
message
String
-
-
buttons
Array<String>
-
['ok']
Errorsโ
Here is a list of errors that can be thrown when calling this function in addition to generic errors:
Last updated
Was this helpful?