Using the UI services
It is common in every application to show messages, notifications, and alerts to users to inform or warn them. In the next sections, I will introduce ABP's built-in APIs for these services.
Showing message boxes
Message boxes are used to show blocking messages or confirmation dialogs to the user. The user clicks on the Ok button to disable the message or clicks the Yes or Cancel buttons to make a decision on configuration dialogs.
There are five types of messages – Info
, Success
, Warn
, Error
, and Confirm
. The following example shows a Success
message sent to the user:
@page "/" @inherits DemoAppComponentBase <Button Color="Color.Primary" Clicked="ShowSuccess">Click me!</Button> @code { private async Task ShowSuccess() { await Message.Success("This is...