mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 01:02:26 +08:00

* added packages reference menu item. * removed the draft flag. * Updated docs by running script.
80 lines
1.5 KiB
Markdown
80 lines
1.5 KiB
Markdown
+++
|
|
# -----------------------------------------------------------------------
|
|
# 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<HTMLElement>) => 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;
|
|
```
|