# ASP.NET Core MVC / Razor Pages UI: JavaScript Message API
# ASP.NET Core MVC / Razor Pages UI: JavaScript Message API
Message API is used to show nice looking messages to the user as a blocking dialog. Message API is an abstraction provided by the ABP Framework and implemented using the [SweetAlert2](https://sweetalert2.github.io/) library by default.
Message API is used to show nice looking messages to the user as a blocking dialog. Message API is an abstraction provided by the ABP Framework and implemented using the [SweetAlert](https://sweetalert.js.org/) library by default.
## Quick Example
## Quick Example
@ -90,7 +90,7 @@ abp.message.confirm(
## SweetAlert Configuration
## SweetAlert Configuration
The Message API is implemented using the [SweetAlert2](https://sweetalert2.github.io/) library by default. If you want to change its configuration, you can set the options in the `abp.libs.sweetAlert.config` object. The default configuration object is shown below:
The Message API is implemented using the [SweetAlert](https://sweetalert.js.org/) library by default. If you want to change its configuration, you can set the options in the `abp.libs.sweetAlert.config` object. The default configuration object is shown below:
````js
````js
{
{
@ -124,5 +124,5 @@ So, if you want to set the `warn` icon, you can set it like:
abp.libs.sweetAlert.config.warn.icon = 'error';
abp.libs.sweetAlert.config.warn.icon = 'error';
````
````
See the [SweetAlert document](https://sweetalert2.github.io/) for all the configuration options.
See the [SweetAlert document](https://sweetalert.js.org/) for all the configuration options.