Class ToastEvents
Configure the event handlers to handle the events with Toast component.
Inheritance
Namespace: Syncfusion.Blazor.Notifications
Assembly: Syncfusion.Blazor.dll
Syntax
public class ToastEvents : OwningComponentBase
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> | An event callback function. |
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> | An event callback function. |
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> | An event callback function. |
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> | An event callback function. |
OnClose
Triggers the event before the toast close.
Declaration
public EventCallback<ToastBeforeCloseArgs> OnClose { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ToastBeforeCloseArgs> | An event callback function. |
OnOpen
Triggers the event before the toast shown.
Declaration
public EventCallback<ToastBeforeOpenArgs> OnOpen { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ToastBeforeOpenArgs> | An event callback function. |
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> | An event callback function. |
Methods
Dispose()
Dispose the unmanaged resources.
Declaration
public virtual void Dispose()
Dispose(Boolean)
Dispose the unmanaged resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Boolean value to dispose the object. |
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |