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

    Reference to an open popover.

    Returned by PopoverService.openPopover and injected into the content component. Similar to ModalRef but for non-modal popovers anchored to an element.

    readonly popoverRef = inject(PopoverRef<string>);

    selectItem(item: string): void {
    this.popoverRef.close(item);
    }

    Type Parameters

    • R = unknown
    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    closed: Observable<R | undefined> = ...

    Observable that emits the result value when the popover closes, then completes. Emits undefined on light-dismiss.

    Accessors

    • get isClosed(): boolean

      Whether the popover has already been closed.

      Returns boolean

    Methods

    • Close the popover, optionally returning a result value.

      Parameters

      • Optionalresult: R

      Returns void