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
Id
The unique identifier of the popover.
public virtual Guid Id { get; }
Property Value
Open
Shows the popover.
[Parameter]
[Category("Behavior")]
public bool Open { get; set; }
Property Value
PopoverClass
protected abstract string PopoverClass { get; }
Property Value
PopoverService
[Inject]
protected IPopoverService PopoverService { get; set; }
Property Value
PopoverStyles
protected abstract string PopoverStyles { get; }
Property Value
Methods
DisposeAsync()
public virtual ValueTask DisposeAsync()
Returns
OnAfterRenderAsync(bool)
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
firstRender
bool
Returns
OnInitializedAsync()
protected override Task OnInitializedAsync()
Returns
OnParametersSetAsync()
protected override Task OnParametersSetAsync()