UNPKG

xui

Version:

xUI Components for Angular

21 lines (20 loc) 1.01 kB
import { EventEmitter, QueryList, TemplateRef, ViewContainerRef } from '@angular/core'; import { Overlay } from '@angular/cdk/overlay'; import { ButtonComponent } from '../button'; import { ContextMenuAnchor } from './context-menu.types'; import * as i0 from "@angular/core"; export declare class ContextMenuComponent { private overlay; private viewContainerRef; private overlayRef; anchor: ContextMenuAnchor; afterClosed: EventEmitter<any>; templateRef: TemplateRef<unknown>; buttons: QueryList<ButtonComponent>; constructor(overlay: Overlay, viewContainerRef: ViewContainerRef); open(anchor?: ContextMenuAnchor): void; private calculatePositionStrategy; close(): void; static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ContextMenuComponent, "xui-context-menu", never, { "anchor": { "alias": "anchor"; "required": false; }; }, { "afterClosed": "afterClosed"; }, ["buttons"], ["*"], false, never>; }