carbon-components-angular
Version:
Next generation components
58 lines (54 loc) • 2.01 kB
TypeScript
/**
*
* carbon-angular v0.0.0 | context-menu.component.d.ts
*
* Copyright 2014, 2025 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, AfterViewInit } 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, AfterViewInit {
protected elementRef: ElementRef;
open: boolean;
position: {
left: number;
top: number;
};
size: "sm" | "md" | "lg";
get hostClass(): string;
role: string;
tabindex: string;
get leftPosition(): number;
get topPosition(): number;
/**
* @todo - convert to getter in v6, should resolve expression has changed
* after switching to on OnPush Change Detection Strategy
*/
iconClass: boolean;
constructor(elementRef: ElementRef);
ngOnChanges(changes: SimpleChanges): void;
ngAfterViewInit(): void;
focusMenu(): void;
handleNavigation(event: KeyboardEvent): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ContextMenuComponent, "cds-menu, cds-context-menu, ibm-context-menu", never, { "open": "open"; "position": "position"; "size": "size"; }, {}, never, ["*"], false>;
}