Menu
Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Enterprise
Open source
ContextMenuProps interface
Signature
typescript
export interface ContextMenuProps Import
typescript
import { ContextMenuProps } from '@grafana/ui';Properties
| Property | Type | Description |
|---|---|---|
| items | ContextMenuGroup[] | |
| onClose | () => void | |
| renderHeader | () => React.ReactNode | |
| x | number | |
| y | number |
items property
Signature
typescript
items?: ContextMenuGroup[];onClose property
Signature
typescript
onClose: () => void;renderHeader property
Signature
typescript
renderHeader?: () => React.ReactNode;x property
Signature
typescript
x: number;y property
Signature
typescript
y: number;Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Choose a product
Viewing: v7.1
Find another version
Scroll for more