Table of Contents

Interface IMBTooltipService

Namespace
Material.Blazor
Assembly
Material.Blazor.dll

Interface for the Material.Blazor tooltip service, developed from the code base of Blazored Toast by Chris Sainty. Works in conjunction with a MBAnchor that must be placed in either App.razor or MainLayout.razor to avoid an exception being thrown when you first attempt to show a tooltip notification.

Throws a InvalidOperationException if AddTooltip(long, RenderFragment) is called without an MBAnchor component used in the app.

public interface IMBTooltipService

Methods

AddTooltip(long, MarkupString)

Adds a tooltip.

void AddTooltip(long id, MarkupString content)

Parameters

id long
content MarkupString

AddTooltip(long, RenderFragment)

Adds a tooltip.

void AddTooltip(long id, RenderFragment content)

Parameters

id long
content RenderFragment

RemoveTooltip(long)

Removes the tooltip with the specified id.

void RemoveTooltip(long id)

Parameters

id long

Events

OnAddMarkupString

A event that will be invoked when adding a tooltip

event Action<long, MarkupString> OnAddMarkupString

Event Type

Action<long, MarkupString>

OnAddRenderFragment

A event that will be invoked when adding a tooltip

event Action<long, RenderFragment> OnAddRenderFragment

Event Type

Action<long, RenderFragment>

OnRemove

A event that will be invoked when removing a tooltip

event Action<long> OnRemove

Event Type

Action<long>