/// import { CoreComponent } from "cmf.core/src/core"; import * as ng from "@angular/core"; /**Nested modules */ /** Kendo */ import "kendo.userevents"; import "kendo.menu"; /** * Kendo context menu options. This will be public as other components may reuse these settings */ export declare const CONTEXT_MENU_OPTIONS: kendo.ui.ContextMenuOptions; /** * @whatItDoes * Context menu component. * * @howToUse * This component is used with the inputs and outputs mentioned below. * * ### Inputs * `any[]` : **items** - Comments textual content ; * `any` : **menu-id** - Identifier for the menu . * * ### Example * To use the component, assume this HTML Template as an example: * * ```HTML * * * (...) * * * (...) * * * *
  • * (...) * * *
  • *
    *
    * ``` * ``` * */ export declare class ContextMenu extends CoreComponent implements ng.OnInit, ng.OnDestroy, ng.DoCheck { private _iterableDiffers; private _ngZone; /** * Div that contains menu items */ private _menuItemsContainerRef; /** * Div that contains the right click anchor */ private _anchor; /** * Menu item template */ _menuItemTemplate: ng.TemplateRef; /** * IterableDiffer */ private _iterableDiffer; /** * Kendo context menu */ private _kendoContextMenu; /** * Menu items rendered in HTML */ _renderedMenuItems: any[]; /** * Kendo context menu options. */ private _kendoContextMenuOptions; /** * Menu Items */ items: any[]; /** * Menu Id */ menuId: string; /** * Constructor */ constructor(_elementRef: ng.ElementRef, _iterableDiffers: ng.IterableDiffers, _ngZone: ng.NgZone); /** * This is an event delegation implementation. Here we are interested in hooking up the click event for the context menu * as a preventive measure to guarantee that the context menu is closed. So normally, the underlying
  • will implement * their own click handler and they will delegate to someone (in this case the
      context menu) * to close the component. */ closeContextMenu(event: Event): void; /** * Open context menu */ openContextMenu(): void; /** * When component is initiated */ ngOnInit(): void; /** * Called when Angular dirty checks a directive */ ngDoCheck(): void; /** * Called When Angular 2 is destroying the component */ ngOnDestroy(): void; } export declare class ContextMenuModule { }