Table of Contents

Class MudPopoverBase

Namespace
MudBlazor
Assembly
MudBlazor.dll

Base class for implementing Popover component.

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

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

Property Value

RenderFragment

Id

public virtual Guid Id { get; }

Property Value

Guid

Open

[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

Service

[Inject]
[Obsolete("Replaced by PopoverService. Will be removed in v7.")]
public IMudPopoverService Service { get; set; }

Property Value

IMudPopoverService

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