Back to Devexpress

IToastNotificationService Interface

blazor-devexpress-dot-blazor-064f3837.md

latest1.5 KB
Original Source

IToastNotificationService Interface

Allows you to manage toast notifications in code.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public interface IToastNotificationService

Remarks

The toast notification service allows you to create, show, and close toast notifications in code. To use the service, inject it with the [Inject] attribute.

csharp
[Inject] IToastNotificationService ToastService { get; set; }

Use methods implemented by the interface to manage toast notifications in code.

  • The ShowToast method overloads allow you to create and show toast notifications at runtime or to show DxToast components declared in markup.

  • The CloseToast(String) method allows you to close toast notifications.

Run Demo: Overview

YouTube video

See Also

IToastNotificationService Members

DevExpress.Blazor Namespace