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.
ContextMenuProps interface
Signature
export interface ContextMenuProps
Import
import { ContextMenuProps } from '@grafana/ui';
Properties
Property | Type | Description |
---|---|---|
items | ContextMenuGroup[] | |
onClose | () => void | |
renderHeader | () => React.ReactNode | |
x | number | |
y | number |
items property
Signature
items?: ContextMenuGroup[];
onClose property
Signature
onClose: () => void;
renderHeader property
Signature
renderHeader?: () => React.ReactNode;
x property
Signature
x: number;
y property
Signature
y: number;