Table of Contents

Class MudPopover

Namespace
MudBlazor
Assembly
MudBlazor.dll

Displays content as a window over other content.

public class MudPopover : MudPopoverBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged, IPopover, IAsyncDisposable
Inheritance
MudPopover
Implements
Inherited Members
Extension Methods

Constructors

MudPopover()

public MudPopover()

Properties

AnchorOrigin

The location this popover will appear relative to its parent container.

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

Property Value

Origin

Remarks

Defaults to TopLeft. Use TransformOrigin to control the direction of the popover from this point.

Delay

The amount of time, in milliseconds, from opening the popover to beginning the transition.

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

Property Value

double

Remarks

Defaults to 0ms in Delay.

DropShadow

Shows a drop shadow to help this popover stand out.

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

Property Value

bool

Remarks

Defaults to true.

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.

Elevation

The amount of drop shadow to apply.

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

Property Value

int

Remarks

Defaults to 8 in Elevation.

Fixed

Displays this popover in a fixed position, even through scrolling.

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

Property Value

bool

Remarks

Defaults to False.

MaxHeight

Sets the maximum height, in pixels, of this popover.

[Parameter]
[Category("Appearance")]
public int? MaxHeight { get; set; }

Property Value

int?

OverflowBehavior

The behavior applied when there is not enough space for this popover to be visible.

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

Property Value

OverflowBehavior

Remarks

Defaults to FlipOnOpen.

Paper

Displays content within a MudPaper.

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

Property Value

bool

Remarks

Defaults to true.

PopoverClass

protected override string PopoverClass { get; }

Property Value

string

PopoverStyles

protected override string PopoverStyles { get; }

Property Value

string

RelativeWidth

Determines the width of this popover in relation the parent container.

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

Property Value

DropdownWidth

Remarks

Defaults to Ignore.

When Relative, restricts the max-width of the component to the width of the parent container

When Adaptive, restricts the min-width of the component to the width of the parent container

RightToLeft

Displays text Right-to-Left.

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

Property Value

bool

Remarks

Defaults to false. This property is set via the MudRTLProvider.

Square

Displays square borders around this popover.

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

Property Value

bool

Remarks

Defaults to false. Can be overridden by Rounded. When true, the CSS border-radius is set to 0.

TransformOrigin

The direction this popover will appear relative to the Origin.

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

Property Value

Origin

Remarks

Defaults to TopLeft.

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder