@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Service for opening non-modal popovers anchored to a DOM element using the native HTML5 Popover API ([popover], showPopover()).

    Ideal for context menus, rich tooltips, dropdown panels, and any content that should float above the page without blocking interaction with the rest of the UI.

    Content components implement UIPopoverContent and receive a PopoverRef via dependency injection.

    this.popover.openPopover<MyMenu, string>({
    component: MyMenu,
    anchor: buttonElement,
    verticalAxisAlignment: 'bottom',
    horizontalAxisAlignment: 'start',
    verticalOffset: 4,
    inputs: { items: menuItems },
    }).closed.subscribe((action) => this.handleAction(action));
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Opens a popover anchored to the given element.

      Type Parameters

      • T
      • R = unknown

      Parameters

      • config: OpenPopoverConfig<T>

        Component type, anchor, placement, inputs, and output handlers.

      Returns PopoverRef<R>

      A PopoverRef to observe the result or close programmatically.