Argument | Description | Types / Required |
text | The message to display. | string
required |
title | The dialog's title. | string
not required |
The
UI.alert action displays an alert dialog using the same
HTML dialog used by the
errmsg function. The dialog displays the
text. The dialog's title defaults to
"Alert", but this can be overridden by providing a
title.
The action returns undefined.
The action throws an exception if any of its arguments are not specified in a valid form.
<script>
const CS = new CSProActionInvoker();
CS.UI.alertAsync({
title: "Synchronization Error",
text: "There was an error sending the data to the server!"
});
</script>