Interface IMBTooltipService
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
longcontent
MarkupString
AddTooltip(long, RenderFragment)
Adds a tooltip.
void AddTooltip(long id, RenderFragment content)
Parameters
id
longcontent
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
OnAddRenderFragment
A event that will be invoked when adding a tooltip
event Action<long, RenderFragment> OnAddRenderFragment
Event Type
OnRemove
A event that will be invoked when removing a tooltip
event Action<long> OnRemove