Class InternalToastAnchor
An anchor component that displays toast notification that you display via ShowToast(MBToastLevel, string, string, MBNotifierCloseMethod?, string, string, IMBIconFoundry?, bool?, uint?, bool). Place this component at the top of either App.razor or MainLayout.razor.
public class InternalToastAnchor : ComponentFoundation, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
- Inheritance
-
InternalToastAnchor
- Implements
- Inherited Members
Constructors
InternalToastAnchor()
public InternalToastAnchor()
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
CloseToastAsync(Guid)
Closes a toast and removes it from the anchor, with a fade out routine.
public Task CloseToastAsync(Guid toastId)
Parameters
toastId
Guid
Returns
Dispose(bool)
protected override void Dispose(bool disposing)
Parameters
disposing
bool
OnInitializedAsync()
Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.
Override this method if you will perform an asynchronous operation and want the component to refresh when that operation is completed.
protected override Task OnInitializedAsync()