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

    Interface UIPopoverContent<R>

    Interface that popover content components should implement.

    @Component({ ... })
    export class UIContextMenu implements UIPopoverContent<string> {
    readonly popoverRef = inject(PopoverRef<string>);

    pick(action: string): void { this.popoverRef.close(action); }
    }
    interface UIPopoverContent<R = unknown> {
        popoverRef: PopoverRef<R>;
    }

    Type Parameters

    • R = unknown
    Index

    Properties

    Properties

    popoverRef: PopoverRef<R>

    Injected reference used to close the popover and return a result.