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

ContextMenuItem interface

Signature

typescript
export interface ContextMenuItem 

Import

typescript
import { ContextMenuItem } from '@grafana/ui';

Properties

PropertyTypeDescription
groupstring
iconstring
labelstring
onClick(event?: React.SyntheticEvent<HTMLElement>) => void
targetLinkTarget
urlstring

group property

Signature

typescript
group?: string;

icon property

Signature

typescript
icon?: string;

label property

Signature

typescript
label: string;

onClick property

Signature

typescript
onClick?: (event?: React.SyntheticEvent<HTMLElement>) => void;

target property

Signature

typescript
target?: LinkTarget;

url property

Signature

typescript
url?: string;