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

PropertyTypeDescription
itemsContextMenuGroup[]
onClose() => void
renderHeader() => React.ReactNode
xnumber
ynumber

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;