UNPKG

carbon-components-angular

Version:
54 lines (50 loc) 1.81 kB
/** * * carbon-angular v0.0.0 | context-menu.component.d.ts * * Copyright 2014, 2024 IBM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { ElementRef, SimpleChanges, OnChanges } from "@angular/core"; import * as i0 from "@angular/core"; /** * Get started with importing the module: * * ```typescript * import { ContextMenuModule } from 'carbon-components-angular'; * ``` * * [See demo](../../?path=/story/components-context-menu--basic) */ export declare class ContextMenuComponent implements OnChanges { protected elementRef: ElementRef; open: boolean; position: { left: number; top: number; }; contextMenu: boolean; get contextMenuOpen(): boolean; get showMenu(): boolean; role: string; tabindex: string; get leftPosition(): number; get topPosition(): number; get classIcons(): HTMLElement; constructor(elementRef: ElementRef); ngOnChanges(changes: SimpleChanges): void; focusMenu(): void; handleNavigation(event: KeyboardEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ContextMenuComponent, "cds-context-menu, ibm-context-menu", never, { "open": "open"; "position": "position"; }, {}, never, ["*"], false>; }