The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/docs/sources/packages_api/ui/contextmenuitem.md

79 lines
1.5 KiB

+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "ContextMenuItem"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
+++
## ContextMenuItem interface
<b>Signature</b>
```typescript
export interface ContextMenuItem
```
<b>Import</b>
```typescript
import { ContextMenuItem } from '@grafana/ui';
```
<b>Properties</b>
| Property | Type | Description |
| --- | --- | --- |
| [group](#group-property) | <code>string</code> | |
| [icon](#icon-property) | <code>string</code> | |
| [label](#label-property) | <code>string</code> | |
| [onClick](#onclick-property) | <code>(event?: React.SyntheticEvent&lt;HTMLElement&gt;) =&gt; void</code> | |
| [target](#target-property) | <code>LinkTarget</code> | |
| [url](#url-property) | <code>string</code> | |
### group property
<b>Signature</b>
```typescript
group?: string;
```
### icon property
<b>Signature</b>
```typescript
icon?: string;
```
### label property
<b>Signature</b>
```typescript
label: string;
```
### onClick property
<b>Signature</b>
```typescript
onClick?: (event?: React.SyntheticEvent<HTMLElement>) => void;
```
### target property
<b>Signature</b>
```typescript
target?: LinkTarget;
```
### url property
<b>Signature</b>
```typescript
url?: string;
```