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.
ContextMenuItem interface
Signature
export interface ContextMenuItem
Import
import { ContextMenuItem } from '@grafana/ui';
Properties
Property | Type | Description |
---|---|---|
group | string | |
icon | string | |
label | string | |
onClick | (event?: React.SyntheticEvent<HTMLElement>) => void | |
target | LinkTarget | |
url | string |
group property
Signature
group?: string;
icon property
Signature
icon?: string;
label property
Signature
label: string;
onClick property
Signature
onClick?: (event?: React.SyntheticEvent<HTMLElement>) => void;
target property
Signature
target?: LinkTarget;
url property
Signature
url?: string;