Class ToastEvents
Configure the event handlers to handle the events with Toast component.
Inheritance
System.Object
Syncfusion.Blazor.SfBaseComponent
ToastEvents
Namespace: Syncfusion.Blazor.Notifications
Assembly: Syncfusion.Blazor.dll
Syntax
public class ToastEvents : SfBaseComponent
Constructors
ToastEvents()
Declaration
public ToastEvents()
Properties
Closed
Trigger the event after the Toast hides.
Declaration
public EventCallback<ToastCloseArgs> Closed { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ToastCloseArgs> |
Created
Triggers the event after the Toast gets created.
Declaration
public EventCallback<object> Created { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
Destroyed
Triggers the event after the Toast gets destroyed.
Declaration
public EventCallback<object> Destroyed { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
OnClick
The event will be fired while clicking on the Toast.
Declaration
public EventCallback<ToastClickEventArgs> OnClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ToastClickEventArgs> |
OnOpen
Triggers the event before the toast shown.
Declaration
public EventCallback<ToastBeforeOpenArgs> OnOpen { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ToastBeforeOpenArgs> |
OnSanitizeHtml
Declaration
public EventCallback<BeforeSanitizeHtmlArgs> OnSanitizeHtml { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<BeforeSanitizeHtmlArgs> |
Opened
Triggers the event after the Toast shown on the target container.
Declaration
public EventCallback<ToastOpenArgs> Opened { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ToastOpenArgs> |
Methods
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
Syncfusion.Blazor.SfBaseComponent.OnInitializedAsync()