Table of Contents

Class MudPopoverBase

Namespace
MudBlazor
Assembly
MudBlazor.dll

A base class for implementing Popover components.

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

Remarks

This class provides a base implementation for a Popover component. It implements the IPopover interface and utilizes the IPopoverService to handle the creation, updating, and destruction of the popover.

Constructors

MudPopoverBase()

protected MudPopoverBase()

Properties

ChildContent

The content within this popover.

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

Property Value

RenderFragment

Id

The unique identifier of the popover.

public virtual Guid Id { get; }

Property Value

Guid

Open

Shows the popover.

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

Property Value

bool

PopoverClass

protected abstract string PopoverClass { get; }

Property Value

string

PopoverService

[Inject]
protected IPopoverService PopoverService { get; set; }

Property Value

IPopoverService

PopoverStyles

protected abstract string PopoverStyles { get; }

Property Value

string

Methods

DisposeAsync()

public virtual ValueTask DisposeAsync()

Returns

ValueTask

OnAfterRenderAsync(bool)

protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender bool

Returns

Task

OnInitializedAsync()

protected override Task OnInitializedAsync()

Returns

Task

OnParametersSetAsync()

protected override Task OnParametersSetAsync()

Returns

Task