Table of Contents

Class InternalSnackbar

Namespace
Material.Blazor.Internal
Assembly
Material.Blazor.dll
public class InternalSnackbar : ComponentFoundation, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
InternalSnackbar
Implements
Inherited Members

Constructors

InternalSnackbar()

public InternalSnackbar()

Properties

Snackbar

The unique SnackbarInstance for this snackbar.

[Parameter]
public SnackbarInstance Snackbar { get; set; }

Property Value

SnackbarInstance

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

Closed()

Called by Material Components Web when a snackbar is closed, setting the Closed parameter in settings and calling any OnClose listeners.

[JSInvokable]
public void Closed()

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()

Returns

Task

A Task representing any asynchronous operation.