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