Table of Contents

Interface IPopoverService

Namespace
MudBlazor
Assembly
MudBlazor.dll

Represents a service for managing popovers.

public interface IPopoverService : IAsyncDisposable
Inherited Members
Extension Methods

Properties

ActivePopovers

Gets the collection of active popovers that were created via CreatePopoverAsync(IPopover). Disappears from collection after calling DestroyPopoverAsync(IPopover).

IEnumerable<IMudPopoverHolder> ActivePopovers { get; }

Property Value

IEnumerable<IMudPopoverHolder>

IsInitialized

Gets a value indicating whether the IPopoverService is initialized.

bool IsInitialized { get; }

Property Value

bool

true if the IPopoverService is initialized; otherwise, false.

PopoverOptions

Gets the current popover options.

PopoverOptions PopoverOptions { get; }

Property Value

PopoverOptions

Methods

CreatePopoverAsync(IPopover)

Creates a popover.

Task CreatePopoverAsync(IPopover popover)

Parameters

popover IPopover

The popover to create.

Returns

Task

DestroyPopoverAsync(IPopover)

Destroys a popover.

Task<bool> DestroyPopoverAsync(IPopover popover)

Parameters

popover IPopover

The popover to destroy.

Returns

Task<bool>

The task result indicates whether the popover was successfully destroyed.

GetProviderCountAsync()

Counts the number of popover providers.

ValueTask<int> GetProviderCountAsync()

Returns

ValueTask<int>

The task result contains the count of popover providers.

Subscribe(IPopoverObserver)

Subscribes an observer to receive popover update notifications.

void Subscribe(IPopoverObserver observer)

Parameters

observer IPopoverObserver

The observer to subscribe.

Unsubscribe(IPopoverObserver)

Unsubscribes an observer from receiving popover update notifications.

void Unsubscribe(IPopoverObserver observer)

Parameters

observer IPopoverObserver

The observer to unsubscribe.

UpdatePopoverAsync(IPopover)

Updates an existing popover.

Task<bool> UpdatePopoverAsync(IPopover popover)

Parameters

popover IPopover

The popover to update.

Returns

Task<bool>

true if the update was successful; otherwise, false.