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); }} Copy
@Component({ ... })export class UIContextMenu implements UIPopoverContent<string> { readonly popoverRef = inject(PopoverRef<string>); pick(action: string): void { this.popoverRef.close(action); }}
Readonly
Injected reference used to close the popover and return a result.
Interface that popover content components should implement.
Example