ngb-context-menu
Version:
A simple context menu library, based on ng-bootstrap library
16 lines (15 loc) • 901 B
TypeScript
import { ComponentRef, EventEmitter, OnInit, ViewContainerRef } from '@angular/core';
import { NgbContextMenuItem } from "../models/context-menu.model";
import { ContextMenuComponent } from "../components/context-menu/context-menu.component";
import * as i0 from "@angular/core";
export declare class ContextMenuDirective implements OnInit {
viewContainerRef: ViewContainerRef;
menuItems: NgbContextMenuItem[];
selectedMenuItem: EventEmitter<number>;
contextMenuComponentRef: ComponentRef<ContextMenuComponent>;
constructor(viewContainerRef: ViewContainerRef);
onRightClick(event: MouseEvent): void;
ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuDirective, "[ngbContextMenu]", never, { "menuItems": "menuItems"; }, { "selectedMenuItem": "selectedMenuItem"; }, never>;
}