Table of Contents

Class MudTooltip

Namespace
MudBlazor
Assembly
MudBlazor.dll
public class MudTooltip : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
Inheritance
MudTooltip
Implements
Inherited Members
Extension Methods

Constructors

MudTooltip()

public MudTooltip()

Properties

Arrow

If true, an arrow will be displayed pointing towards the content from the tooltip.

[Parameter]
[Category("Appearance")]
public bool Arrow { get; set; }

Property Value

bool

ChildContent

Child content of component.

[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

Classname

protected string Classname { get; }

Property Value

string

Color

The color of the component. It supports the theme colors.

[Parameter]
[Category("Appearance")]
public Color Color { get; set; }

Property Value

Color

ContainerClass

protected string ContainerClass { get; }

Property Value

string

Delay

The amount of time in milliseconds to wait from opening the popover before beginning to perform the transition.

[Parameter]
[Category("Appearance")]
public double Delay { get; set; }

Property Value

double

Remarks

Defaults to 0ms in Delay.

Disabled

If true, the tooltip will be disabled; the popover will not be visible.

[Parameter]
[Category("Behavior")]
public bool Disabled { get; set; }

Property Value

bool

Duration

The length of time that the opening transition takes to complete.

[Parameter]
[Category("Appearance")]
public double Duration { get; set; }

Property Value

double

Remarks

Defaults to 251ms in Duration.

Inline

Determines if this component should be inline with it's surrounding (default) or if it should behave like a block element.

[Parameter]
[Category("Appearance")]
public bool Inline { get; set; }

Property Value

bool

Placement

Tooltip placement.

[Parameter]
[Category("Appearance")]
public Placement Placement { get; set; }

Property Value

Placement

RightToLeft

[CascadingParameter(Name = "RightToLeft")]
public bool RightToLeft { get; set; }

Property Value

bool

RootClass

Classes applied directly to root component of the tooltip

[Parameter]
[Category("Appearance")]
public string? RootClass { get; set; }

Property Value

string

RootStyle

Styles applied directly to root component of the tooltip

[Parameter]
[Category("Appearance")]
public string? RootStyle { get; set; }

Property Value

string

ShowOnClick

[Parameter]
[Category("Appearance")]
public bool ShowOnClick { get; set; }

Property Value

bool

ShowOnFocus

Determines on which events the tooltip will act

[Parameter]
[Category("Appearance")]
public bool ShowOnFocus { get; set; }

Property Value

bool

ShowOnHover

Determines on which events the tooltip will act

[Parameter]
[Category("Appearance")]
public bool ShowOnHover { get; set; }

Property Value

bool

Text

Sets the text to be displayed inside the tooltip.

[Parameter]
[Category("Behavior")]
public string? Text { get; set; }

Property Value

string

TooltipContent

Tooltip content. May contain any valid html

[Parameter]
[Category("Behavior")]
public RenderFragment? TooltipContent { get; set; }

Property Value

RenderFragment

Visible

The visible state of the Tooltip.

[Parameter]
[Category("Behavior")]
public bool Visible { get; set; }

Property Value

bool

VisibleChanged

An event triggered when the state of Visible has changed

[Parameter]
[Category("Behavior")]
public EventCallback<bool> VisibleChanged { get; set; }

Property Value

EventCallback<bool>

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder