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
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
Methods
CreatePopoverAsync(IPopover)
Creates a popover.
Task CreatePopoverAsync(IPopover popover)
Parameters
popover
IPopoverThe popover to create.
Returns
DestroyPopoverAsync(IPopover)
Destroys a popover.
Task<bool> DestroyPopoverAsync(IPopover popover)
Parameters
popover
IPopoverThe popover to destroy.
Returns
GetProviderCountAsync()
Counts the number of popover providers.
ValueTask<int> GetProviderCountAsync()
Returns
Subscribe(IPopoverObserver)
Subscribes an observer to receive popover update notifications.
void Subscribe(IPopoverObserver observer)
Parameters
observer
IPopoverObserverThe observer to subscribe.
Unsubscribe(IPopoverObserver)
Unsubscribes an observer from receiving popover update notifications.
void Unsubscribe(IPopoverObserver observer)
Parameters
observer
IPopoverObserverThe observer to unsubscribe.
UpdatePopoverAsync(IPopover)
Updates an existing popover.
Task<bool> UpdatePopoverAsync(IPopover popover)
Parameters
popover
IPopoverThe popover to update.